Commit Graph

261 Commits

Author SHA1 Message Date
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
e782709911 Only show url in follow UID command 2018-07-07 23:10:39 +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
71a9040eba
cli: Only show channels id when a channel is created 2018-06-30 15:57:47 +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
899588d73e Clean up presentation of items in command line client 2018-06-27 21:38:52 +02:00
9e7448c53b Extract clientID to command line client 2018-06-27 21:05:25 +02:00
d62afd7738 Extract scope to command line client 2018-06-27 21:04:19 +02:00
bdc84895f5 Add missing documentation for "connect" command 2018-06-25 21:28:51 +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
ff0e969d8f Load config files from users config dir 2018-05-16 17:34:40 +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
da53190a97 Improve logging on client calls 2018-05-13 19:38:46 +02:00
28e5f4d7be Add uid to channel message 2018-05-13 19:38:27 +02:00
0a6841d9b9 cli: align items in channels output 2018-05-12 18:56:30 +02:00
22f47cde40 cli: add help text 2018-05-12 18:36:59 +02:00
845e2ce43e Remove program from args to simplify command parsing 2018-05-12 18:25:59 +02:00
fa35d331ec If text format is not available show HTML 2018-05-12 15:19:11 +02:00
57bedde9b1 Add Create, Update and Delete 2018-05-12 15:18:58 +02:00
6d57b4e58d Improve display of items 2018-05-12 14:37:51 +02:00
e2b577eef9 Fix order of before and after 2018-05-12 14:37:29 +02:00
ada6c45a0a cli: show items always in the same way 2018-05-12 14:08:40 +02:00
eba2afc746 cli: Add more commands to client 2018-05-12 13:58:01 +02:00
fa969e3602 cli: clieanup and save endpoints and me 2018-05-12 13:41:08 +02:00
3615bdb64d cli: cleanup 2018-05-12 13:20:13 +02:00
9a8ab7e719 cli: extract loadEndpoints 2018-05-12 13:16:15 +02:00
8edcde3471 cli: extract loadAuth 2018-05-12 13:11:13 +02:00
c84e139903 Add Microsub CLI client 2018-05-12 13:08:36 +02:00
798c5c39d6 Fix repost error type conversion 2018-05-06 12:39:54 +02:00
6e89e8d4f7 Add profiling support for cloud.google.com
- Adds dependency on env var GOOGLE_APPLICATION_CREDENTIALS, which
should contain a json file with a service key
2018-05-06 10:43:45 +02:00
e935820387 Add redis caching of http requests and hub subscription 2018-05-03 21:50:16 +02:00
dd4b03c97b Fix for cast 2018-05-03 07:29:51 +02:00
f943507d0d Use right variable for value array 2018-05-03 07:27:31 +02:00
7fe800f0f9 Add in-reply-to to item 2018-05-03 07:26:15 +02:00
2f3c486651 Disable feed loading on start 2018-05-03 07:24:55 +02:00
04e37a8257 Add cast checks around in-reply-to 2018-05-03 07:22:32 +02:00
0155a36a90 Get more information from feeds 2018-05-02 00:13:41 +02:00
f5ed8dbc45 Add simple start of feedbin API proxy 2018-05-01 23:47:43 +02:00
3bff9eb481 Add mentions to the mentions channel 2018-04-26 22:13:13 +02:00
28e8ce6f78 Also match with HTML in Content 2018-04-25 22:46:36 +02:00
58d0179a35 Check if content != nil before matching content 2018-04-25 21:59:41 +02:00
3590bbdb65 Skip items without uid or url 2018-04-25 21:52:04 +02:00
29658eb096 Gather value from microformat instead of full cite 2018-04-25 21:47:52 +02:00
6467d35529 If the item content matches my website, also add it to noficitations 2018-04-25 21:28:08 +02:00
10bce8189b Remove Accept header from Fetch 2018-04-12 20:46:04 +02:00
1185b1f786 Add accept headers 2018-04-11 22:09:53 +02:00
c9c505bda4 Always use fetchURL to get the feed 2018-04-11 22:06:13 +02:00
68a98ee59e Don't leave early 2018-04-11 22:01:44 +02:00
a968380e7a Add logging for found feed info 2018-04-11 21:56:40 +02:00
3574001b40 Improve ID generation of the posts messages 2018-04-11 21:26:38 +02:00
1142f4a1bc Check if author is set 2018-04-11 19:49:49 +02:00
999bc0d456 Improve handling of missing author and content 2018-04-11 18:47:57 +02:00
0a7696ea6b Add type="entry" for RSS and Atom feeds 2018-04-11 18:32:46 +02:00
5da097a91a Remove author when no fields are set 2018-04-11 18:18:54 +02:00
c61fe38718 Keep list of read items and skip adding 2018-04-10 21:14:59 +02:00
fbbcd1d3ea Improve RSS/Atom parsing 2018-04-10 21:02:16 +02:00
ddf7b68807 Content 2018-04-10 20:59:56 +02:00