67c8b03467
Move TimelineGet to backend code
2018-12-25 12:29:32 +01:00
56d9981a4a
Cleanup message from auth.go
2018-12-25 12:29:15 +01:00
084888880b
Don't resubscribe at feeds without Hub
2018-12-18 20:14:59 +01:00
34133191fc
Cleanup (parse category better)
2018-12-18 19:40:56 +01:00
c9f06518c1
Fix null pointer exception
2018-12-16 22:08:33 +01:00
5dcb64cc28
Handle error from ProcessContent in HubBackend
2018-12-09 17:59:06 +01:00
d93530a237
Remove os.GetEnv call
2018-12-09 17:57:16 +01:00
a2db7069e7
Separate App from main
...
- extract env vars
- add command line arguments
- move null backend to server package
2018-12-09 17:39:36 +01:00
f21a68a56d
Add -headless option
2018-12-09 16:30:02 +01:00
d997fa8ca9
Fix null result in output
2018-12-09 16:26:44 +01:00
4fd3eb73ed
Cleanup of simplification MF2 to JF2
2018-12-08 16:56:08 +01:00
e0fd9d26ac
Add error handling for channel backend calls
2018-12-08 15:37:04 +01:00
81adf6bbca
Cleanup error messages
2018-12-08 15:36:50 +01:00
e6201eacef
Remove "reader" command
2018-11-25 12:50:12 +01:00
b0fb1b5bec
Move utility functions down
2018-10-03 19:12:18 +02:00
7f4eb2e7e3
Extract function to remove channel from Redis
2018-10-03 19:09:56 +02:00
7252675aba
Use updateChannelInRedis with uid and prio
2018-10-03 19:03:33 +02:00
beba0e5120
Reuse updateChannelInRedis
2018-10-03 18:59:53 +02:00
9c3e884fd1
Add notifications to channels
2018-10-03 18:57:37 +02:00
2288e70e85
Extract updateChannelInRedis
2018-10-03 18:56:26 +02:00
cec5fd0672
Simpleify ChannelsCreate
2018-10-03 18:54:23 +02:00
c51bfc4603
Move init of channels closer to init
2018-10-03 18:48:49 +02:00
08257bab25
Move start up messages to main function
2018-10-03 18:45:36 +02:00
036152d89e
Use RUnlock method without defer
2018-10-03 18:43:57 +02:00
ab7e654f7c
Move refreshChannels to own method
2018-10-03 18:41:46 +02:00
4829ce0192
Fix when you're in a channel
2018-09-15 17:32:17 +02:00
79c44a5b0b
Use u instead of url because it collides with url package
2018-09-15 16:58:54 +02:00
ee78ca96f3
Add reader command to help
2018-09-15 16:58:43 +02:00
816e9087ca
Add reader command
2018-09-15 16:53:00 +02:00
412debc637
Extract opml and json import and export
2018-09-15 16:41:22 +02:00
83bcf0e708
Options requests are always accepted
2018-09-15 16:24:44 +02:00
014898b8df
Adding missing return nil
2018-09-15 16:17:33 +02:00
c17cd92268
Extract method: buildValidateAuthTokenRequest
2018-09-15 16:15:35 +02:00
8d99527e45
Move function down
2018-09-15 16:13:38 +02:00
8792285eb4
Cleanup error handling when setting token
2018-09-15 16:13:08 +02:00
76bad074c7
Remove err from parameters
2018-09-15 16:11:52 +02:00
6a26e9330e
Clean up the cached auth token code
2018-09-15 16:11:11 +02:00
994ab142d6
Fix checks for cached authorization
2018-09-15 16:10:01 +02:00
e3daa14614
Remove err from parameters
2018-09-15 16:08:28 +02:00
ab8998cdf2
Extract method setCachedTokenResponseValue
2018-09-15 16:07:56 +02:00
7361b524e8
Get the cached value from Redis
2018-09-15 16:04:50 +02:00
3c9f7eae47
You shouldn't be authorized always
...
Signed-off-by: Peter Stuifzand <peter@stuifzand.eu>
2018-09-15 16:00:57 +02:00
8a69473baf
Move Microsub handler to it's own package
2018-09-15 10:23:11 +02:00
7e15298175
Move server to package
2018-09-12 22:35:49 +02:00
c160a34260
Add cache-control header
2018-09-11 20:53:48 +02:00
8b5b1ddf70
Add json import
2018-09-10 21:33:16 +02:00
b2a4410d6c
Add export to a JSON file
2018-09-10 21:25:02 +02:00
47edcc41be
Import feeds from OPML
2018-09-10 20:41:30 +02:00
8bad2d1a88
Add export opml command
2018-09-10 20:19:32 +02:00
691be5300d
Remove cache-control header
2018-09-08 20:29:07 +02:00
453b695901
Try other headers
2018-09-08 20:26:19 +02:00
b38f2f526f
Remove space in ACAH header
2018-09-08 20:21:29 +02:00
8d42585672
Use the API right
2018-09-08 20:16:53 +02:00
c116139f89
Add ticker for real
2018-09-08 20:12:55 +02:00
58b7027259
Add default ticker
2018-09-08 20:07:05 +02:00
f0bdae1855
Add missing file
2018-09-08 19:59:49 +02:00
a64a4e1541
Add events
2018-09-08 19:56:54 +02:00
bd05576f1c
Add cache-control to allowed methods
2018-09-08 19:32:01 +02:00
56c25c6ab2
Add too simple events to the server
2018-09-08 19:12:53 +02:00
0d1d391f2a
Microsub events test
2018-09-08 17:49:20 +02:00
348fc5f33f
StablePartition the channels based on unread count
2018-09-02 11:12:07 +02:00
218f3ffa08
Improve template handling
2018-09-01 13:35:02 +02:00
572c108dc1
Reset before and after if no new values are found
2018-08-29 20:42:59 +02:00
dc5f9883f2
Use empty slice instead of null slice
2018-08-28 21:29:18 +02:00
89a50821d4
Remove Redis from microsubHandler and pass as parameter
2018-08-28 21:17:42 +02:00
e02050013d
Fix a number of data races in the memory backend
2018-08-28 21:15:22 +02:00
fa61569e56
Add Access-Control-Allow-Origin header to all requests
2018-08-27 22:54:39 +02:00
4693b95f77
Move OPTIONS response higher up
2018-08-26 18:54:45 +02:00
a4416164cd
Add Access-Control-Allow-Origin and friends
2018-08-26 18:50:11 +02:00
67c27a6139
Remove cloud profiler
2018-08-26 18:50:00 +02:00
407d4fb155
Fix error in micropub input
2018-08-19 20:11:24 +02:00
64730b0e50
Cleanup summary, and use h-feed author
2018-08-19 17:00:09 +02:00
118b072f38
Simplify matching of inclusion/exclusion regex
2018-08-18 20:57:43 +02:00
8360c178c7
Also look at referenced items for included text
2018-08-18 20:50:10 +02:00
99edcd6d40
Improve usage text
2018-08-18 12:09:35 +02:00
c10bf83c41
Add -verbose option to enable logging
2018-08-18 11:58:57 +02:00
03c7375064
Update channels count with new items for include matching
2018-08-15 20:08:03 +02:00
3addbb50de
Simplify markasread function
2018-08-15 19:04:44 +02:00
507aff683e
Use gomodule version of redis library
2018-08-15 19:04:15 +02:00
c678fc67da
Add missing deferred body Close calls
2018-08-15 19:03:45 +02:00
d4b51a6ad7
include: check for text and html content
2018-08-11 20:45:25 +02:00
41c079b871
Add more debug logging for WebSub
2018-08-05 21:02:10 +02:00
d89dac6159
Check exclude regex on HTML as well
2018-08-05 21:01:55 +02:00
fddea5e39b
jf2test - add testing program for JF2 output
2018-08-05 13:57:42 +02:00
1cb3e21e7c
Move fetching code to fetch package
2018-08-05 13:45:12 +02:00
573816d75f
Move jf2 to own package, start cleanup of fetch
2018-08-05 12:15:59 +02:00
27f1187399
Add a few more tests for simplification
2018-08-05 11:09:21 +02:00
64390e1965
Add tests for simplification functionality
...
Signed-off-by: Peter Stuifzand <peter@stuifzand.eu>
2018-08-05 11:02:07 +02:00
66489b6de7
Move jsonfeed to it's own package
...
- Also implement hubs for jsonfeed
2018-08-04 22:43:57 +02:00
c1f2b7a5a7
Add missing license matters
2018-07-28 18:03:21 +02:00
af3e90c964
Move from github.com/pstuifzand to p83.nl/go/ekster
2018-07-28 17:52:59 +02:00
55ef797f68
Try to not escape HTML in timeline response
2018-07-28 13:42:32 +02:00
67fd816e3f
Fix memory leak
...
Close resp.Body in the main Fetch function. When the resp.Body is not
closed, it will keep all HTTP responses in memory and that amount will
grow, quite fast.
2018-07-28 10:07:07 +02:00
e79b883faa
Remove unused caching structs
2018-07-26 19:50:08 +02:00
0d3e2638c1
Add profiler for microsub server
2018-07-26 19:49:55 +02:00
e4a26e7c96
Don't fully reset session with using /auth
2018-07-25 14:58:42 +02:00
14a1edee57
Log the session after verification
2018-07-25 14:55:36 +02:00
4078559a89
Create a session when starting at auth
2018-07-25 14:52:13 +02:00
d9bdf78fd2
Remember NextURI when logging in
2018-07-25 14:27:23 +02:00
1cea51d5d5
Use logo property for Icon
2018-07-25 13:54:55 +02:00
0429821c08
Check error getAppInfo
2018-07-25 13:52:13 +02:00
dae386ef87
Remove some logging and useless comment
2018-07-25 13:51:59 +02:00
06a8df3bb8
Check if grant_type is used in token_endpoint
2018-07-25 13:51:00 +02:00
de9e27cac4
Show app info when logging in
2018-07-25 13:50:25 +02:00
09d2a72b33
Use channel adder with matchers
2018-07-16 22:38:21 +02:00
aa22931786
Fix actual include code
2018-07-16 22:34:25 +02:00
f2d9d450d0
Remember include_regex
2018-07-16 22:26:04 +02:00
023209c5d5
Add matching of includeRegex
2018-07-16 22:24:50 +02:00
09e5a81227
Add testing of ExcludeRegex
2018-07-16 22:16:12 +02:00
acf0721ba5
Add some settings
2018-07-16 22:05:28 +02:00
633cfabbfd
Remove unused init() function
2018-07-16 21:36:11 +02:00
f3da9da58d
Clean up url generation and callback
2018-07-16 21:05:52 +02:00
c3d8fb2802
Add type to item
2018-07-15 00:21:30 +02:00
3d03a17f42
Set ok = true in formencoded item
2018-07-15 00:16:57 +02:00
6426b31c0b
Add application/x-www-form-urlencoded to micropub endpoint
2018-07-15 00:12:05 +02:00
9a6ecac4d8
Get channel name from "token"
2018-07-15 00:07:44 +02:00
f76979298d
Adding missing return
2018-07-15 00:04:19 +02:00
6517a38fc1
Add content-type header to token response
2018-07-15 00:02:33 +02:00
95ee593dd8
Implement Indieauth for channels
2018-07-15 00:01:00 +02:00
89201c0178
Start of logging in with Indieauth on Micropub
2018-07-14 17:29:06 +02:00
e491a61dae
Use internal API to get channel/feed info
2018-07-14 15:11:57 +02:00
7156920798
Improve settings page, add logs page
2018-07-14 15:04:24 +02:00
330d4d70e5
Check if the user is logged in
2018-07-14 14:48:57 +02:00
4000e2b441
Add information about channels
2018-07-14 14:46:36 +02:00
a69c6c2fde
Move mainHandler to own files
2018-07-12 21:20:54 +02:00
d8da433a6d
Make ClientID a constant
2018-07-12 21:09:37 +02:00
bc180ca8b3
Better checking for EKSTER_TEMPLATES
2018-07-12 21:04:26 +02:00
4c59931283
Extract session code
2018-07-12 21:00:47 +02:00
0f9752452d
Extract template loading
2018-07-12 20:51:47 +02:00
076a0faea3
Create start of settings page
2018-07-11 11:00:06 +02:00
cad14ac461
Fix command for getting list of feeds for WebSub
2018-07-11 10:56:32 +02:00
3f00d820dd
Get the right template file
2018-07-09 22:21:25 +02:00
369849a493
Remove templates directory
2018-07-09 22:12:04 +02:00
462ee38b96
Add error checking for template loading and writing
2018-07-09 22:09:45 +02:00
59fcb1fc47
Use env templates
2018-07-09 22:09:11 +02:00
fe88320675
Add templates
2018-07-09 21:59:26 +02:00
8ef9e31446
Improve logging and error handling
2018-07-09 19:12:47 +02:00
a8918e59d0
Try to create better request
2018-07-09 19:01:03 +02:00
24a71a6b43
Add content-type header
2018-07-09 18:51:08 +02:00
5aa2c012cd
Add Accept header to request
2018-07-09 18:48:09 +02:00
4df4371256
Print json response body
2018-07-09 18:44:28 +02:00
05d7c498c3
Add logout
2018-07-09 18:37:21 +02:00
93faba100e
Save logged in info and show on the homepage
2018-07-09 18:33:04 +02:00
5b30d00838
Check if cookie exists
2018-07-08 14:50:09 +02:00
7b2a591902
Add logging in with Indieauth (alpha)
2018-07-08 14:47:30 +02:00
379be5436d
Save unread count
2018-07-08 11:02:10 +02:00
ae0d3d5388
improve logging and error handling
2018-07-08 11:01:56 +02:00
1afb20dd1c
ParseForm
2018-07-08 00:15:26 +02:00
e2d7962730
Start running the hubbackend
2018-07-08 00:11:10 +02:00
a39e4b850b
Add some logging to indieauth endpoint
2018-07-08 00:09:37 +02:00