Commit Graph

688 Commits (bca995ad54de2b92cc7746f6da27b5f022807d15)

Author SHA1 Message Date
Bob Mottram cc35f03170 Don't send bounces to replies to bounces 2021-02-24 11:10:03 +00:00
Bob Mottram a9de85cb13 Send DM bounce messages 2021-02-24 11:01:44 +00:00
Bob Mottram 4555917eeb Tidying 2021-02-24 10:05:30 +00:00
Bob Mottram 764f6673c0 Improve follow checking when a DM arrives 2021-02-24 09:54:37 +00:00
Bob Mottram 6b55ceab12 Broch mode elapses 2021-02-15 22:26:25 +00:00
Bob Mottram 01385fbdfe Only show failed http signatures in debug mode 2021-02-14 20:41:11 +00:00
Bob Mottram 0c1ad3ecde Don't log posts for http signature failures 2021-02-14 20:30:01 +00:00
Bob Mottram 62100efd38 Log posts of failing signatures 2021-02-14 19:49:39 +00:00
Bob Mottram 5c5e6c7d1a More descriptive jsonld failures 2021-02-14 15:45:42 +00:00
Bob Mottram e6b9382a0a Allow incoming posts with failing http signatures provided that they have a json signature which passes
This provides the same level of assurance, but allows posts to arrive via relays
2021-02-14 15:22:03 +00:00
Bob Mottram 345ded45c7 Honk style users path 2021-02-09 16:21:59 +00:00
Bob Mottram 30ac93d578 Additional type checks on incoming json 2021-02-08 15:06:26 +00:00
Bob Mottram ae0b1505f9 Join activity has the same meaning as Follow 2021-02-08 14:48:37 +00:00
Bob Mottram 8bbd9b6173 Check for dangerous markup in display name and clearly indicate adversaries 2021-01-31 11:05:17 +00:00
Bob Mottram 8299b77942 Check for dangerout markup in downloaded announces 2021-01-30 11:47:09 +00:00
Bob Mottram 419353ccf9 Version 1.2.0 2021-01-26 10:07:42 +00:00
Bob Mottram e5c4d9e69b Only use json signatures on outgoing posts unless verify all signatures is enabled 2021-01-05 20:55:11 +00:00
Bob Mottram 2ce7456e28 Convert to string 2021-01-05 20:16:58 +00:00
Bob Mottram 99903072d2 Debug 2021-01-05 20:15:52 +00:00
Bob Mottram 6b9f30cbd2 Check context before json signature verify 2021-01-05 20:11:16 +00:00
Bob Mottram 52159d3817 Debug 2021-01-05 17:36:50 +00:00
Bob Mottram 0a5c65e9a2 Limit json signature checking to strict mode 2021-01-05 12:20:59 +00:00
Bob Mottram 584fe93b56 Only abandon post if signature checking is strict 2021-01-05 12:13:18 +00:00
Bob Mottram 75788fd9f8 Comment 2021-01-05 10:54:50 +00:00
Bob Mottram 7125a97bbe Update json signature enforcement state once per min 2021-01-05 10:48:22 +00:00
Bob Mottram 2c2476f3c0 Option to enforce json signature checks 2021-01-05 10:29:37 +00:00
Bob Mottram b8a698d887 Show keyId for json signature check 2021-01-04 20:26:55 +00:00
Bob Mottram 9bdfec94f0 Fix jsonld signatures
Also some schemas are no longer remotely accessed
2021-01-04 19:02:24 +00:00
Bob Mottram 6aa1cc8389 Extra json signature checks 2021-01-03 19:20:28 +00:00
Bob Mottram 5fc36f6ebb Debug 2021-01-03 19:11:59 +00:00
Bob Mottram a8906b25d7 Check for signature without header 2021-01-03 19:08:39 +00:00
Bob Mottram 5a327d281e Debug 2021-01-03 18:42:39 +00:00
Bob Mottram edf0c8880e Debug 2021-01-03 18:40:26 +00:00
Bob Mottram 2449b57005 Simplify 2021-01-03 18:34:35 +00:00
Bob Mottram b0eaa6835d Consistent message 2021-01-03 18:25:23 +00:00
Bob Mottram 77f965162c Enable checking of json signatures on inbox posts 2021-01-03 18:20:25 +00:00
Bob Mottram be14587011 Only warn about json signature failures 2021-01-03 14:44:57 +00:00
Bob Mottram 183141ee80 Show from key 2021-01-03 14:36:16 +00:00
Bob Mottram e8290d99d5 Check that json signatured are present on inbox posts 2021-01-03 14:25:20 +00:00
Bob Mottram c09596f1e2 More verbose 2021-01-03 09:44:33 +00:00
Bob Mottram 1df8ed9c76 Resolving the webfinger conundrum 2020-12-31 12:23:15 +00:00
Bob Mottram 0d0d49ac89 Revert "Fix missing webfingers"
This reverts commit 4bee4e236a.
2020-12-31 12:14:47 +00:00
Bob Mottram 4bee4e236a Fix missing webfingers 2020-12-31 11:08:08 +00:00
Bob Mottram 9d937826bc Update when receiving likes 2020-12-30 21:21:57 +00:00
Bob Mottram 7fbdb2445f Get webfinger from cache 2020-12-30 10:29:14 +00:00
Bob Mottram adbddb95c3 Check before adding new entries to indexes 2020-12-29 20:22:28 +00:00
Bob Mottram cce7941b39 Only write to indexes once 2020-12-29 17:56:42 +00:00
Bob Mottram b3bb866f69 Remove option to follow new actor
It wasn't implemented, and doing so could create an oprn relay situation where the authenticity of posts becomes obscured
2020-12-26 10:22:56 +00:00
Bob Mottram cf4d9466eb Start of custom peertube sites 2020-12-23 23:59:49 +00:00
Bob Mottram 0fe9b2adcd Tidying 2020-12-23 22:18:19 +00:00
Bob Mottram 838d853a59 Tidying of users path detection 2020-12-23 10:57:44 +00:00
Bob Mottram 3ff0866deb Test that number of function arguments match 2020-12-22 21:24:46 +00:00
Bob Mottram 5cd9aa8d66 Enforce convention of underscore before local function names 2020-12-22 18:06:23 +00:00
Bob Mottram 0cf0841402 Check that imports are correct 2020-12-22 13:57:24 +00:00
Bob Mottram a7b094f84f Test for stranded functions which aren't called 2020-12-22 12:59:46 +00:00
Bob Mottram 96e813181b Move hashtag categories functions to their own module 2020-12-22 10:30:52 +00:00
Bob Mottram 679c06b20e Don't guess very small tags 2020-12-22 10:13:15 +00:00
Bob Mottram a3cbc28c1e Indentation 2020-12-21 21:40:29 +00:00
Bob Mottram 23301b35a5 Validate newswire item dates
So they can't be in the future or too far in the past
2020-12-21 12:11:45 +00:00
Bob Mottram 31a48db4a4 Validation of published date on incoming posts
This mitigates replay attacks, where an otherwise valid post gets endlessly repeated
2020-12-21 10:45:31 +00:00
Bob Mottram 99374a63dc Revert to previous wfRequest 2020-12-19 14:17:30 +00:00
Bob Mottram 8c7071b6e3 Single webfinger 2020-12-18 18:12:33 +00:00
Bob Mottram bb31ce37cd is_alive replaces isAlive 2020-12-18 15:29:12 +00:00
Bob Mottram fa7741a650 Log actor update requests 2020-12-17 20:56:29 +00:00
Bob Mottram c2404d0943 Tidying 2020-12-16 10:48:40 +00:00
Bob Mottram e87fd5a168 Break after loop 2020-12-13 22:13:45 +00:00
Bob Mottram f94f6eb997 Don't write time to file if it hasn't changed 2020-12-13 14:31:22 +00:00
Bob Mottram 1cf2ea73f9 Comment 2020-12-13 11:28:23 +00:00
Bob Mottram a23f47cdf3 Keep track of when people that you are following were last seen 2020-12-13 11:27:12 +00:00
Bob Mottram e996141fd8 Spaces 2020-12-12 10:06:03 +00:00
Bob Mottram 14d7985353 Remove icons path argument 2020-12-09 13:31:54 +00:00
Bob Mottram ffdc49a56c Remove icons path variable 2020-12-09 13:08:26 +00:00
Bob Mottram 4d46817350 Simplify 2020-12-05 11:58:03 +00:00
Bob Mottram 67e06f65c9 Guess hashtag categorisations 2020-12-05 11:11:32 +00:00
Bob Mottram ed51cf51e7 Change imports to new modules 2020-11-28 10:54:48 +00:00
Bob Mottram 020c7a1314 Delete button also removed blogs from the news actor 2020-11-27 10:38:51 +00:00
Bob Mottram 5364b71616 Option to allow access to the local network
This might be useful for mesh networks or private networks
2020-11-20 10:58:49 +00:00
Bob Mottram 64348c5161 Misleading function name 2020-11-14 13:03:09 +00:00
Bob Mottram a3a022c917 Splitting webapp into smaller modules 2020-11-09 19:41:01 +00:00
Bob Mottram ddc63da755 Rename module 2020-11-09 13:18:28 +00:00
Bob Mottram fa419cf995 Option to set a maximum number of followers per account 2020-10-23 20:48:59 +01:00
Bob Mottram b5d492b668 Optionally allow the news account to be followed 2020-10-23 20:18:13 +01:00
Bob Mottram 2899768828 Option to only show date at bottom of posts, not time 2020-10-11 19:50:13 +01:00
Bob Mottram d3fc053df9 Space 2020-10-11 14:18:54 +01:00
Bob Mottram cf729200b0 More verbose 2020-10-11 14:18:27 +01:00
Bob Mottram 93e554efb8 Check earlier 2020-10-11 14:15:36 +01:00
Bob Mottram c9981f6936 Check that following file exists 2020-10-11 14:14:28 +01:00
Bob Mottram bbbf470149 Boxname 2020-10-08 13:28:02 +01:00
Bob Mottram 90283d5707 Boxname 2020-10-08 13:16:44 +01:00
Bob Mottram 6435156179 Remove capabilities 2020-09-27 20:27:24 +01:00
Bob Mottram b064d6f4d6 Deprecate capabilities module 2020-09-27 19:35:35 +01:00
Bob Mottram 5016a3b2df Additional type checks when receiving post 2020-09-05 17:46:03 +01:00
Bob Mottram 43b1fdf67c functions in utils module 2020-09-05 17:13:25 +01:00
Bob Mottram 605be761ff Add a tags directory if it doesn't exist 2020-09-03 10:09:58 +01:00
Bob Mottram a6a715df63 Indent 2020-09-03 10:01:27 +01:00
sireebob 61ff46ad1c prevent an error for posts missing an inReplyTo key. 2020-09-02 22:42:29 +00:00
Bob Mottram 2dc5bcfdd2 Storing posts 2020-08-29 21:14:44 +01:00
Bob Mottram 7635652ac5 Directories must be created first 2020-08-29 12:14:19 +01:00
Bob Mottram 77c5f810f9 Don't write actors to cache while loading the timeline 2020-08-29 11:21:29 +01:00
Bob Mottram 41607d1542 Check that replyTo field is a string 2020-08-28 15:45:07 +01:00
Bob Mottram 10a21e797b More checks on replyto 2020-08-28 15:28:59 +01:00
Bob Mottram cabdc9c3c5 Replies to muted posts are also muted 2020-08-27 18:40:09 +01:00
Bob Mottram 7db274b57a Comment 2020-08-27 10:35:26 +01:00
Bob Mottram 8ff510e791 Optionally notify when posts are liked 2020-08-27 10:19:32 +01:00
Bob Mottram dcefa585bb Event edit button 2020-08-26 18:41:38 +01:00
Bob Mottram 673247abf0 debug flag 2020-08-26 12:19:32 +01:00
Bob Mottram a9db0b03ab Updating of recent posts cache for events timeline 2020-08-26 12:10:21 +01:00
Bob Mottram a484936793 More content warning validation 2020-08-25 20:45:15 +01:00
Bob Mottram 9c7895e43a Debug 2020-08-24 15:17:16 +01:00
Bob Mottram 3bd8f96994 Unbreak the unit tests 2020-08-23 15:45:58 +01:00
Bob Mottram 86f2e9d8ab Remove id endings in a better way 2020-08-23 12:13:35 +01:00
Bob Mottram c64a8aadc1 Check for allowed comments 2020-08-21 19:32:16 +01:00
Bob Mottram fa0434ca9c Link to event parameters 2020-08-20 18:08:25 +01:00
Bob Mottram f263cef884 Receiving event posts 2020-08-20 17:51:48 +01:00
Bob Mottram a771ce3041 Tidying 2020-08-20 13:11:07 +01:00
Bob Mottram 28830ed660 Consistent append 2020-08-20 12:34:39 +01:00
Bob Mottram 58bba56e75 Allow accounts as users path 2020-08-13 17:19:35 +01:00
Bob Mottram 37b86507c5 Separate event creation function 2020-08-13 11:58:05 +00:00
Bob Mottram 8735567751 Comments 2020-08-13 09:37:11 +00:00
Bob Mottram 34798bfd15 Check that attributedTo is a string 2020-08-06 17:21:46 +01:00
Bob Mottram 83cac23229 Youtube replacement domain is configurable 2020-08-02 10:51:20 +01:00
Bob Mottram 3333574007 Link to who liked a post 2020-07-13 20:42:30 +01:00
Bob Mottram 6b3e9396d7 Check if post was already liked 2020-07-13 14:36:45 +01:00
Bob Mottram 94b4529cf6 Bad variable reuse 2020-07-13 10:34:04 +01:00
Bob Mottram 092bc00d1e Show errors if like notification cannot be saved 2020-07-13 09:56:24 +01:00
Bob Mottram fe5e21ee7d File write style 2020-07-12 20:04:58 +00:00
Bob Mottram e007168cd6 Check for type field 2020-07-11 23:36:52 +01:00
Bob Mottram e61e8bb21b More descriptive 2020-07-11 22:01:08 +01:00
Bob Mottram 1a15d07dfd Improve checking for bad markup 2020-07-10 14:15:01 +00:00
Bob Mottram ac0dd52c78 Check for repeated like notifications 2020-07-08 23:17:21 +01:00
Bob Mottram a70edfab53 Check that the liked post is by this handle 2020-07-08 23:04:17 +01:00
Bob Mottram cfba4874f8 Check for sent like notifications 2020-07-08 22:52:18 +01:00
Bob Mottram 57d64ed033 Check if like notification exists 2020-07-08 22:41:48 +01:00
Bob Mottram 80248889b8 Remove debug 2020-07-08 22:37:03 +01:00
Bob Mottram 81c06ae2f5 Tidying 2020-07-08 22:34:54 +01:00
Bob Mottram 3607bfd439 Check for liking own post 2020-07-08 22:28:44 +01:00
Bob Mottram 10ae18affc Debug 2020-07-08 22:18:50 +01:00
Bob Mottram 290ea18b0b Check nickname and domain 2020-07-08 22:04:19 +01:00
Bob Mottram 61f7a09670 Create notification when likes arrive 2020-07-08 20:49:15 +01:00
Bob Mottram 7d78d27e28 Change name of module 2020-07-03 20:20:31 +01:00
Bob Mottram ebd681d11a Check that an account can receive calendar events from the actor 2020-07-03 19:49:00 +01:00
Bob Mottram a7dc83813c Tidying 2020-06-28 20:04:43 +01:00
Bob Mottram 0e3c41db2b When deleting a post also remove it from the recent posts cache in memory 2020-06-24 14:30:50 +01:00
Bob Mottram d392e0a15d Regenerate sessions less frequently 2020-06-24 10:40:17 +01:00
Bob Mottram 52d1f30b4f More debug for sessions 2020-06-24 10:04:58 +01:00
Bob Mottram 18b80efcb7 Remove experimental semantics 2020-06-16 21:33:17 +01:00
Bob Mottram 12c7035d50 Abandon accusatory 2020-06-16 21:29:17 +01:00
Bob Mottram 72fc823c51 More html validity checks 2020-06-14 14:47:46 +01:00
Bob Mottram 0132674ea3 Label accusatory posts 2020-06-12 12:50:49 +01:00
Bob Mottram 6e769484aa Reduce duplicate prefixes 2020-06-11 13:26:15 +01:00
Bob Mottram d352b27dd8 Tidying 2020-06-11 13:04:42 +01:00
Bob Mottram bee0d99ce6 Support for gnunet 2020-06-09 12:51:51 +01:00
Bob Mottram 35438c0fc8 Generalise proxying 2020-06-09 12:03:59 +01:00
Bob Mottram 99a4b65467 Wait for session 2020-06-08 21:18:02 +01:00
Bob Mottram 7a22130837 Handling of i2p secondary domains 2020-06-03 21:21:44 +01:00
Bob Mottram 20a24edaa8 Less indentation 2020-06-02 10:05:55 +01:00
Bob Mottram 09d63088f0 Remove old hashtags when new ones are created 2020-05-31 17:31:33 +01:00
Bob Mottram 4c356b2fe9 Check for blocked actors within arriving announce posts 2020-05-25 10:21:34 +01:00
Bob Mottram c3c378eb4c Comment 2020-05-22 12:57:15 +00:00
Bob Mottram 83345a6d84 Clear inbox queue when full 2020-05-22 11:48:13 +00:00
Bob Mottram b749b37187 More debug 2020-05-22 11:35:33 +00:00
Bob Mottram e8c45a272f Only add to replies index if incoming post is not a DM 2020-05-17 19:21:38 +01:00
Bob Mottram 4608678cae Support hypercore protocol 2020-05-17 10:37:59 +01:00
Bob Mottram a08f6b273e Missing parameter 2020-05-03 13:12:52 +00:00
Bob Mottram 08f19f2e8d Commit ActivityPub type 2020-05-03 10:56:29 +00:00
Bob Mottram 4fc5afde9c More descriptive git patch notification message 2020-05-03 09:58:51 +00:00
Bob Mottram 5dcc60aa7c ActivityPub signoff added to patches 2020-05-03 09:48:12 +00:00
Bob Mottram 0bea2ab9f9 Remove debug 2020-05-02 18:15:48 +00:00
Bob Mottram 0a2cf0e8b1 Save notification patch content at time of receiving 2020-05-02 17:36:22 +00:00
Bob Mottram e2c7648d0b Prepend From 2020-05-02 17:16:24 +00:00
Bob Mottram 03f88377dd Removing html formatting from patch 2020-05-02 17:06:13 +00:00
Bob Mottram b5053a9155 Formatting content before saving patch 2020-05-02 17:01:58 +00:00
Bob Mottram a99483b3fc Tidying 2020-05-02 16:13:02 +00:00
Bob Mottram 884fb86d1a Debug for git 2020-05-02 14:04:08 +00:00
Bob Mottram 307ae74b29 Debug for git 2020-05-02 13:59:23 +00:00
Bob Mottram 71f8b95adf Use the correct json object 2020-05-02 13:45:49 +00:00
Bob Mottram 17d95ea5f8 Comment 2020-05-02 13:17:02 +00:00
Bob Mottram 78ff64dfc1 Check that message fields exist 2020-05-02 13:14:55 +00:00
Bob Mottram 33458499bb Typo 2020-05-02 12:10:28 +00:00
Bob Mottram 2361301203 Also save content of git patch for use by notification system 2020-05-02 12:02:49 +00:00
Bob Mottram b73aca47c2 Creates a notification file when a git patch is received 2020-05-02 11:20:57 +00:00
Bob Mottram ba042f4dd8 Receiving git patches via the inbox 2020-05-02 11:08:38 +00:00
Bob Mottram 15ba6c3688 Fix warnings 2020-05-02 10:19:24 +00:00
Bob Mottram c79efe6d6f Restart the inbox queue when full 2020-04-27 10:41:38 +01:00
Bob Mottram f3723d4707 Less sleep in inbox queue 2020-04-16 19:25:59 +01:00
Bob Mottram 3045e8c860 Reduce lower bound for maximum posts per minute 2020-04-16 15:37:01 +01:00
Bob Mottram d8aac0a273 Only send one response 2020-04-16 11:14:05 +01:00
Bob Mottram d21b584f78 Tidying 2020-04-16 10:49:57 +01:00
Bob Mottram d81c985e44 Exit loop if no keyId 2020-04-16 10:27:22 +01:00
Bob Mottram 6b092d63ec flake8 format 2020-04-03 16:27:34 +00:00
Bob Mottram 8cb0d18680 Show failed header 2020-03-30 20:35:47 +01:00
Bob Mottram 7cfc046859 More verbose inbox queue processing 2020-03-30 20:32:25 +01:00
Bob Mottram 2f46c2b31f Minimum per minute quotas 2020-03-28 11:46:11 +00:00
Bob Mottram 4e2e1dab21 Simplify 2020-03-25 10:55:47 +00:00
Bob Mottram 305e45ea91 Remove queue file when over quota 2020-03-25 10:52:53 +00:00
Bob Mottram 9333bf012b Account quotas per day 2020-03-25 10:47:13 +00:00
Bob Mottram 05ef1933b4 Quota for domain posts per minute 2020-03-25 10:36:37 +00:00
Bob Mottram 57306c798c Always show over quota messages 2020-03-25 10:23:08 +00:00
Bob Mottram 92c84c4dc2 Daily quotas variable names 2020-03-25 10:21:25 +00:00
Bob Mottram 23bb250deb Remove trailing whitespace 2020-03-22 21:16:02 +00:00