Commit graph

86 commits

Author SHA1 Message Date
Mouse Reeve f77c156733 rename main code directory 2020-09-17 13:30:54 -07:00
Mouse Reeve 8bbf1fe252
Use dataclasses to define activitypub (de)serialization (#177)
* Use dataclasses to define activitypub (de)serialization
2020-09-17 13:02:52 -07:00
Adam Kelly 9af410f921 Silently ignore unauthorised deletes.
Fixes: #166
2020-05-22 14:20:27 +01:00
Adam Kelly ae7339928c Move signature checking logic out of shared_inbox. 2020-05-22 13:53:56 +01:00
Adam Kelly 5cfc9aa8de Fetch updated key if old key is invalid. 2020-05-22 13:49:56 +01:00
Adam Kelly 17734940ac Use get_or_create_remote_user from get_public_key. 2020-05-21 16:51:01 +01:00
Mouse Reeve 373a378452 Verify that the remote user is who they say they 2020-05-18 18:26:00 -07:00
Adam Kelly 12bedf3316 Allow arguments to fr-dev test 2020-05-15 11:22:27 +01:00
Adam Kelly b212456d0d Move signature code into fedireads.signatures. 2020-05-15 11:18:41 +01:00
Mouse Reeve 3e02123a0d Updates for broadcast changes 2020-05-13 18:23:54 -07:00
Mouse Reeve e76f96eb6c Unify concept of absolute_id and remote_id 2020-05-13 09:28:48 -07:00
Adam Kelly 2db4da4061 Check all signatures are signed by the right actor. 2020-05-13 12:36:06 +01:00
Adam Kelly 5d4076d628 Use public key from db if available. 2020-05-13 12:36:06 +01:00
Mouse Reeve 72b4e7da76 Small code cleanup 2020-05-10 11:29:10 -07:00
Mouse Reeve ee7c04cc7e code style cleanup 2020-05-09 16:16:23 -07:00
Mouse Reeve 3a4a194160 Path to update books 2020-05-03 18:56:29 -07:00
Mouse Reeve bcd54f52f3 Only accept Create Status activities related to existing statuses 2020-05-03 14:55:13 -07:00
Mouse Reeve 4f9edae05a
Merge pull request #150 from cthulahoops/async_import
Async import
2020-04-27 10:15:43 -07:00
Adam Kelly fba78d7a0e Style fixes suggested by pylint. 2020-04-22 14:53:22 +01:00
Adam Kelly 881cc4d64b First draft async imports. 2020-04-22 12:43:55 +01:00
Mouse Reeve 2d4c2a7ee2 Process incoming federated quotes
Fixes #149
2020-04-20 16:37:53 -07:00
Mouse Reeve aeb648a8d5 Turn incoming activities into tasks 2020-03-31 17:00:01 -07:00
Mouse Reeve bb04a40044 Move to redis and fix a bunch of things 2020-03-31 16:31:33 -07:00
Adam Kelly 745ca7d4ff Boosts - handle url, store in database, send, notify. 2020-03-30 16:18:37 +01:00
Mouse Reeve 84d7e7c394 Simplifies incoming activity handler 2020-03-29 18:42:34 -07:00
Mouse Reeve 92790d520f code style cleanup 2020-03-29 11:18:42 -07:00
Mouse Reeve 3ead02e05f Rename handle_incoming_whatever functions 2020-03-28 23:52:07 -07:00
Mouse Reeve 952250009b Rename handle_outgoing_whatever to handle_whatever
it's in a file called outgoing.py! you can already tell it's outoging
2020-03-28 19:23:19 -07:00
Mouse Reeve 7862af9729 Adds commenting
works on #59
2020-03-21 16:50:49 -07:00
Mouse Reeve 7455467c40 Unfavorite statuses 2020-03-21 15:21:27 -07:00
Mouse Reeve e0bd8200ad (Un)follow and boost/like buttons via javascript
Works on #78
2020-03-21 14:29:39 -07:00
Mouse Reeve 1ec515034c Fixes bug in accepting unmanaged follow requests 2020-03-21 14:25:31 -07:00
Adam Kelly ffe81291ad Use database constraint to prevent relationships with yourself. 2020-03-14 22:20:01 +00:00
Mouse Reeve 4765f965cf Combine html and json views
Fixes #80
2020-03-13 17:57:36 -07:00
Adam Kelly 20662a90dd Generate Reject activities.
Work on checking incoming / outgoing will work alone.
2020-03-13 17:04:39 +00:00
Adam Kelly 6b5644ed00 Generate a notification for pending follow requests. 2020-03-13 13:41:05 +00:00
Mouse Reeve a8ea3c08c9 Don't duplicate incoming statuses 2020-03-12 17:16:55 -07:00
Mouse Reeve ee56ae86ec Finishes implementing reply activitypub json
Fixes #24
2020-03-12 16:45:18 -07:00
Adam Kelly b21c5fc98f Update follow and unfollow to use UserFollowRequest & UserFollows. 2020-03-11 12:37:19 +00:00
Mouse Reeve a47f573b2b Fixes storage of remote statuses 2020-03-10 12:04:38 -07:00
Adam Kelly e1fa7a73cc Don't automatically accept follows if the user doesn't want to. 2020-03-09 21:16:46 +00:00
Mouse Reeve f4008eb8c8 Adds notifications
Fixes #70
2020-03-07 14:51:04 -08:00
Mouse Reeve e45b04f22e Adds published date separate from created date 2020-03-06 16:35:56 -08:00
Adam Kelly 592c2b7dfd Reverse user_subject & user_object.
In the relationships table:

user_subject should be the user doing the following.
user_object should be the user who is followed.

This fixes a bug where unfollowing a user deletes the relationship in
both directions.
2020-02-24 16:10:09 +00:00
Adam Kelly 8cbca4229f Add following as a related_name for followers. 2020-02-24 15:10:03 +00:00
Mouse Reeve 20522cbd11 Minor formatting changes 2020-02-23 13:24:23 -08:00
Adam Kelly 25e49d8ba2 Handle and ignore duplicate follower error. 2020-02-23 09:37:21 +00:00
Mouse Reeve 76d2e20742 cleans up urls and views 2020-02-22 14:02:03 -08:00
Mouse Reeve bc4e65ae81 Fixes incoming tagging 2020-02-20 22:37:50 -08:00
Mouse Reeve 870d0b9697 Tagging
Works on #55
2020-02-20 22:19:19 -08:00