Commit Graph

315 Commits

Author SHA1 Message Date
3addbb50de
Simplify markasread function
All checks were successful
the build was successful
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
All checks were successful
the build was successful
2018-08-11 20:45:25 +02:00
41c079b871
Add more debug logging for WebSub
All checks were successful
the build was successful
2018-08-05 21:02:10 +02:00
d89dac6159
Check exclude regex on HTML as well 2018-08-05 21:01:55 +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
All checks were successful
the build was successful
2018-08-05 11:09:21 +02:00
64390e1965
Add tests for simplification functionality
All checks were successful
the build was successful
Signed-off-by: Peter Stuifzand <peter@stuifzand.eu>
2018-08-05 11:02:07 +02:00
66489b6de7 Move jsonfeed to it's own package
All checks were successful
the build was successful
- Also implement hubs for jsonfeed
2018-08-04 22:43:57 +02:00
c1f2b7a5a7 Add missing license matters
All checks were successful
the build was successful
2018-07-28 18:03:21 +02:00
af3e90c964 Move from github.com/pstuifzand to p83.nl/go/ekster
All checks were successful
the build was successful
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
1b5c029c7b Start of indieauth for backend 2018-07-08 00:06:03 +02:00
2c6f421e3e Set resubscribe_at as unix time 2018-07-07 20:51:02 +02:00
55b279f363 Check for error before printing message 2018-07-07 20:27:00 +02:00
97a98bbfed Cleanup subscribing and feeds
Add ID and URLs to feed, so we can easily resubscribe later
2018-07-07 20:14:46 +02:00
e8796eae5a Extract hubbackend.go 2018-07-07 17:59:41 +02:00
471ff2c564 Remember lease_seconds when set 2018-07-07 17:56:28 +02:00
c6902909b1 Extract isHubSignatureValid function 2018-07-07 17:38:39 +02:00
b8ec0f3700 Remember callbackURL to make it easier to resubscribe 2018-07-07 17:30:51 +02:00
c9ca63b7fa Just return error instead of log.Fatal in Feedbin TimelineGet 2018-07-07 17:20:11 +02:00
dfd9b51cc5 Improve count updating when marking as read 2018-07-07 17:14:54 +02:00
f1483f4171 Improve updating the count of items in a channel 2018-07-07 16:59:22 +02:00
6677bd95ab Use errors in protocol
- Rewrite all api's and clients to use the new calls which allows errors
in the responses
2018-07-07 16:40:04 +02:00
bf645f33ef Move microsub to pkg/microsub 2018-07-07 16:03:49 +02:00
6d3eaa020d Cleanup logging of redis item 2018-07-07 14:32:36 +02:00
66321c44a5 Check if item.Content != nil, because it doesn't have to be set 2018-07-05 22:56:31 +02:00
c613e18c7a Fix syntax error 2018-07-05 22:53:29 +02:00
7ed1d17373 Improve logging and handling of items 2018-07-05 22:52:19 +02:00
1a95c882ad Add Published time when it is not set 2018-07-05 22:03:46 +02:00
48080bca77 Try to implement h-feed 2018-07-05 21:57:25 +02:00
2e83a023f5 Import strings package 2018-07-03 23:01:39 +02:00
9625549a5f Indiepaper uses Authorization header for source_id
- Check author for source_id / auth token
2018-07-03 22:59:07 +02:00
b34604607d Also log Headers on micropub 2018-07-03 22:55:01 +02:00
854e5f5e25 Add logging to micropub endpoint 2018-07-03 22:51:31 +02:00
b8c00a22d6 Also support "normal" MF2 requests for micropub 2018-07-03 22:45:13 +02:00
209e7510c1 Create channel information when creating channel 2018-07-03 22:44:53 +02:00
7d7d55099e Remove channel from Redis when channels is deleted 2018-06-30 15:52:20 +02:00
9e4c93a389 Only show channels if it exists in the channels list 2018-06-30 15:50:04 +02:00
b7b706368a Don't allow unread count to go below zero 2018-06-30 15:48:05 +02:00
59a784f326 Simplify code for deleting a channel 2018-06-30 15:45:35 +02:00
af7d289656
Simplify first time "backend.json" that's generated from new 2018-06-27 21:56:40 +02:00
ddd850db4d Move websub to own package
- Move websub own package
- Add flag to disable auth (by default enabled)
- Process feed directly when following
2018-05-23 21:53:00 +02:00
3b808da62a Get external url from environment 2018-05-23 21:04:47 +02:00
5054b663c6 Add author information to rss/atom feeds 2018-05-22 21:15:40 +02:00
88f055ded7 Simple start with settings/main page 2018-05-22 21:15:25 +02:00
fe8a7b675f Also fetch application/xml is rss/atom feed 2018-05-22 21:12:00 +02:00
799bd08253 Move microsubHandler to microsub.go 2018-05-22 20:29:07 +02:00
00b041b981 Indent backend.json to make it easier to update 2018-05-16 21:38:47 +02:00
f73f26ea09 Add logging messages 2018-05-16 21:25:44 +02:00
7199652e4a Add TokenEndpoint to backend.json
- The tokenEndpoint provided here will be used to check the authenticity
  of the token
2018-05-16 21:21:00 +02:00
d28f0d85c2 Make "Me" configurable in backend.json 2018-05-16 19:41:05 +02:00
a43c987a9a Remove mention code
Should be readded more generally, so we can add posts mentioning some
regex to a channel
2018-05-16 17:30:59 +02:00
b177dfd82e Remove google cloud profiler 2018-05-16 17:29:40 +02:00
26c8295193 Rename microsub-server --> ekster
- Server is called eksterd
- Client is called ek
2018-05-16 17:24:26 +02:00