Commit Graph

261 Commits

Author SHA1 Message Date
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
96696fb240 Improve RSS/Atom handling of html and text 2018-04-10 20:51:51 +02:00
0ef60c5a4c Update channel count when markin items read 2018-04-10 20:44:47 +02:00
fc4400a3c8 Use unread count for channels 2018-04-10 20:35:16 +02:00
e24c01e781 Remove read items from list 2018-04-10 20:30:24 +02:00
ac2e238e0a Removed read check 2018-04-09 23:34:08 +02:00
56ab0912e9 Use Form for mark read 2018-04-09 22:57:48 +02:00
a9530db9b2 Fix beforeScore 2018-04-09 22:44:33 +02:00
97f2fc8323 Leave "after" and "before" when all items are gotten 2018-04-09 22:38:18 +02:00
072af93608 Make "after" and "before" exclusive when set 2018-04-09 22:24:28 +02:00
6ae8062dc6 First try at paging with ZSETS 2018-04-09 21:52:55 +02:00
eeeb9f3b3f Improve use of redis 2018-04-09 19:20:32 +02:00
2818576e2e Improve JSON feed parsing 2018-04-08 21:07:51 +02:00
fa877ef89b Use array for photo 2018-04-08 20:47:43 +02:00
24c6cb0672 Add image from jsonfeed 2018-04-08 20:46:01 +02:00
d1afcd121e Support people mentions somewhat 2018-04-08 20:41:56 +02:00
82345fd421 Check type of card properties 2018-04-08 20:35:18 +02:00
1b6d89f4fd like-of and friends can be full items 2018-04-08 20:31:25 +02:00
9c7d11cb68 Improve handling of authors and checkins 2018-04-08 20:23:00 +02:00
04841aa652 Can't use hash to sort by, use normal keys instead 2018-04-08 19:05:34 +02:00
a5683dd0cc Fix sort order of channels 2018-04-08 16:55:16 +02:00
a2cd294b80 Use boolean unread 2018-04-08 16:22:59 +02:00
faa685e291 Add micropub saving entry to channel from outside 2018-04-08 16:10:55 +02:00
9afebc65cc Refresh feeds every hour instead 10 minutes 2018-04-08 15:32:24 +02:00
f4a8bb7171 Use URL as ID in RSS of ID is not set 2018-04-08 15:30:57 +02:00
8302ecf3ce Gather more information from the right feed, check content-type 2018-04-08 13:19:04 +02:00
287bb3c3ed Add feedheader parsing and show title and icon 2018-04-08 11:44:57 +02:00
ee2eb32b1c Add caching for Fetch2 2018-04-08 11:44:41 +02:00
5e80ddddca If author photo is missing, use icon instead 2018-04-08 10:47:46 +02:00
ce169ec397 Improve JSON feed handling (add author) 2018-04-08 10:43:06 +02:00
cf5b84fd19 Better formatted date 2018-04-08 02:04:38 +02:00
2f7ca6a9b8 Fix null backend 2018-04-08 01:48:20 +02:00
49598a2af1 Add unread and don'r show read 2018-04-08 01:45:56 +02:00
4a6fb2cb07 Improve logging 2018-04-08 01:26:51 +02:00
020c31ad12 Rewrite Preview so it uses the new functions 2018-04-08 01:11:40 +02:00
110861a91f Reset read attribute for items 2018-04-08 00:14:15 +02:00
3fd42d7823 Fix syntax error 2018-04-08 00:06:37 +02:00
582c1d6cad Add read checking to items 2018-04-08 00:06:20 +02:00
551d9f233a Add more logging to incoming handler 2018-04-08 00:02:46 +02:00
42a73d6ccd Implement updating content from websub hub 2018-04-07 23:41:16 +02:00
fc179be0b5 Encode ids as hex 2018-04-07 21:43:43 +02:00
7080e28c65 Fix text of feed items 2018-04-07 21:28:24 +02:00
a99048c9ab Also parse text/xml 2018-04-07 21:21:21 +02:00
b8034af2aa Disable array microformats 2018-04-07 21:10:32 +02:00
d9111a6d05 Fix category #2 2018-04-07 21:07:00 +02:00
a42aaeca32 Fix categories 2018-04-07 21:05:40 +02:00
e850e7f923 Lone category 2018-04-07 21:04:29 +02:00
75c9dfd4f6 Load all urls when starting 2018-04-07 21:01:21 +02:00
925e914d01 Also Fetch JSON feed, RSS, and Atom 2018-04-07 20:50:07 +02:00
cf5d4c0a49 Move adding to channel to own function 2018-04-07 20:12:57 +02:00
5cab70b694 Decrease time between fetches to 10 minutes 2018-04-07 20:06:11 +02:00
42cee3c9a4 Run fetch every hour 2018-04-07 20:00:48 +02:00
7baf3a9ce5 Sort ascending 2018-04-07 16:40:29 +02:00
6477288fee Save feeds to redis and return the feeds from redis 2018-04-07 16:36:27 +02:00
0e0dd4caa7 Add more ways to find urls for queries 2018-04-07 15:49:01 +02:00
44f10dc8f2 Add more information to the post 2018-04-07 15:07:04 +02:00
9399dc3435 Change type of _is_read to bool 2018-04-07 02:22:05 +02:00
e3ee21a4cf Fix naming of _is_read attribute 2018-04-07 02:19:13 +02:00
d374cd15d6 Add _id and _read for mark_as_read handling 2018-04-07 02:08:31 +02:00
cbd6e7dd84 Add "updated" field to item export 2018-04-07 01:58:03 +02:00
e4540ab2b3 Also copy author over 2018-04-07 01:56:17 +02:00
18f270c42c Simplify handling of items 2018-04-07 01:47:33 +02:00
f3036526bb Use items for instead of maps 2018-04-07 01:27:27 +02:00
a189b9eade Use Post Form 2018-03-31 00:40:04 +02:00
2d47da5ddc Send arguments form variables 2018-03-31 00:33:35 +02:00
202bcaab3f Improve logging 2018-03-31 00:26:45 +02:00
2a26177fb5 Use POST to subscribe 2018-03-31 00:20:26 +02:00
537d7f4009 Add some logging to microsub 2018-03-31 00:15:07 +02:00
63556bd9c7 Add subscription to WebSub server 2018-03-31 00:03:01 +02:00
912e1322da Use a real reverse function 2018-03-29 18:22:05 +02:00
6756527f31 Use Reverse and StableSort to sort items 2018-03-29 17:50:57 +02:00
92a23e7810 Convert minutes (in ms) to minutes (in s) 2018-03-28 13:50:03 +02:00
191297bc32 Parse multiple entries[n] with numbers for n 2018-03-28 13:22:40 +02:00
69dbbae6b7 Splat args for HMSET 2018-03-28 13:15:45 +02:00
57b3285bbc Improve Bearer token parsing for redis token saving 2018-03-28 13:13:05 +02:00
bdec252cfa Add logging to Redis 2018-03-28 13:07:50 +02:00
63c66794d0 Show token response 2018-03-28 12:57:53 +02:00
ae7a82ed7b Add more logging for auth 2018-03-28 12:54:52 +02:00
cb98c766da Check if we receive values 2018-03-28 12:52:53 +02:00
a4f8b04e49 Add a bit more logging 2018-03-28 12:50:42 +02:00
12190cbdf2 Cache auth token verification for 10 minutes 2018-03-28 12:42:41 +02:00
ce1463739c Skip read items 2018-03-28 02:21:54 +02:00
6abae3be07 Improve errors 2018-03-28 02:20:25 +02:00
7b867434f6 Add improve logging and handling of errors 2018-03-28 02:08:20 +02:00
3cc34dbfe8 Also process entry[0] 2018-03-28 02:02:16 +02:00
c8d4779e94 Process PostForm 2018-03-28 01:58:54 +02:00
c13b259763 Show http requests information 2018-03-28 01:52:41 +02:00
93acc1a190 Add hex encoding to urls 2018-03-28 01:38:50 +02:00
6730ebd982 Fix _is_read 2018-03-28 01:28:20 +02:00
37329ffd8d Test with marking item as read 2018-03-28 01:22:11 +02:00
3fd7644fb2 Add timeline mark_read command 2018-03-28 00:44:20 +02:00
af128dec60 Add redis and MarkRead 2018-03-28 00:40:04 +02:00
53cb4ff4bc Sort old-to-new 2018-03-28 00:13:17 +02:00
b1dd42b3ca Fix trimspace 2018-03-27 22:07:45 +02:00
1ceb67328f Trim space around name and content 2018-03-27 22:04:53 +02:00
5d1c940c2d If we process a card, then simplify photo 2018-03-27 22:02:35 +02:00
a654662e93 Remove photo change
- Should be an array
2018-03-27 21:54:09 +02:00
4e34003af6 Add logging to microsub server 2018-03-27 21:42:30 +02:00
63422627f4 Add auth token checking 2018-03-27 21:26:44 +02:00
ed0c535b76 Fix problem with names 2018-03-27 21:25:39 +02:00
16aca56da8 Add license to source files 2018-02-19 21:43:05 +01:00