Commit Graph

70 Commits (8d12c77e26497bf94fcf9b3da609aa756bb572c8)

Author SHA1 Message Date
Felix Ableitner 8fc4e1ecfe Add logging to find bug (ref #1283)
Also simplify check_object_domain()
4 years ago
Felix Ableitner a7b72ed5c4 Set valid context for our extra fields (ref #1220) 4 years ago
Felix Ableitner b2288fcb9a Make changes on `content` field backwards compatible 4 years ago
Felix Ableitner cd3f20e49b Populate `content` with HTML, and `source` with markdown (ref #1220) 4 years ago
Felix Ableitner 405ea38959 Add TODO about populating user outbox 4 years ago
Felix Ableitner 48f506277a Create empty outbox for user (ref #1220) 4 years ago
Felix Ableitner 14bf45d099 Dont handle activities twice in inbox 4 years ago
Felix Ableitner 8675fed49c Reduce visibility of some structs and methods (replaces #1266) 4 years ago
Felix Ableitner fb16f47f2f Add user_inbox check that activities are really addressed to local users 4 years ago
Felix Ableitner 964d95de5c Fix unit tests 4 years ago
Felix Ableitner 06e82fe761 Add pending status for federated follows 4 years ago
dessalines 94dd335fac Merge pull request 'Enforce post lock in federation inbox' (#129) from enforce-post-lock into main
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/129
4 years ago
Felix Ableitner e1fd614dd1 Fixed bug where comments with mentions were treated as private message 4 years ago
Felix Ableitner 3b4c3ec074 Enforce post lock in federation inbox 4 years ago
Felix Ableitner 8803e7834f Enforce site and community bans for federated users 4 years ago
Felix Ableitner b469b6d8d3 Separate logic for user and community inbox
more refactoring with tons of changes:

- inbox functions return LemmyError instead of HttpResponse
- announce is done directly in community inbox
- reorganized functions for handling inbox activities
- additional checks for private messages
- moved inbox handler functions for post, comment, vote into separete file
- ensure that posts, comments etc are addressed to public (ref #1220)
- probably more
4 years ago
nutomic 7c51a36012 In activity table, remove `user_id` and add `sensitive` (#127)
Forgot to add migrations

Add `sensitive` column to activities table, so PMs arent served over HTTP

Remove user_id column from actvity table

Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/127
4 years ago
nutomic b7d2dac9bf Fix federation of community removal/deletion, added docs (#125)
Adding a federation test for community deletes / removes.

Add missing docs for community deletion/removal (fixes #1250)

Fix federation of community deletion/removal (fixes #1253)

Co-authored-by: Dessalines <tyhou13@gmx.com>
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/125
4 years ago
Dessalines 7ef044231f
Update cargo deps, upgrading lettre. #789 (#1234)
* Update cargo deps, upgrading lettre. #789

* Adding a comment

* Adding some better expect messages.

* Fixing lettre email.
4 years ago
dessalines 3bf885329d Merge pull request 'Ignore incoming activities which have been received before, add `/activities` endpoint' (#118) from activity-checks into main
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/118
4 years ago
Felix Ableitner 9e24eda752 In comment create/update, include parent creator in cc (ref #698) 4 years ago
dessalines 53c9094d46 Merge pull request 'Limit amount of HTTP requests to handle activities (fixes #1221)' (#117) from request-limit into main
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/117
4 years ago
Felix Ableitner 99abc49040 Add /activities endpoint (ref #1220) 4 years ago
Felix Ableitner 6d17d5ead2 Ignore incoming activities which have been received before (ref #1220) 4 years ago
dessalines 73ccbb1bc8 Merge pull request 'Organise activity receive files by object type, not by activity type' (#115) from inbox-refactoring-2 into main
Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/115
4 years ago
Felix Ableitner 3d5647b16f Limit amount of HTTP requests to handle activities (fixes #1221) 4 years ago
Felix Ableitner b08e0a6415 Dont allow localhost or raw IPs in activitypub IDs (ref #1221) 4 years ago
Felix Ableitner 1a3b96b054 Organise activity receive files by object type, not by activity type 4 years ago
Dessalines 18b3eab909
Merge pull request #1209 from LemmyNet/fix-actor-name-confusion
Swap name and preferredUsername apub fields
4 years ago
Felix Ableitner 695272f980 Create rustdoc for activitypub code 4 years ago
Felix Ableitner 06a6bab2c1 Swap name and preferredUsername apub fields 4 years ago
Dessalines 571c71392e
Adding API and APUB URL checks for banners and icons. Fixes #1199 (#1200)
* Adding API and APUB URL checks for banners and icons. Fixes #1199

* Adding a check optional url.

* Missed a few.
4 years ago
Felix Ableitner fe15ff3c51 Also verify activity domains in shared inbox (fixes #1196) 4 years ago
Felix Ableitner 39cbe5f31f Add method verify_activity_domains_valid() (ref #1196) 4 years ago
Felix Ableitner 3f9ede79ed Add domain checks for private message inbox 4 years ago
Felix Ableitner ac0cd7bc68 Dont include full objects with remove/delete activities 4 years ago
Felix Ableitner 7cfcf0acec Change the way that `to` is set in apub 4 years ago
Felix Ableitner 2ad60379e4 Add `to` field for follow, undo follow 4 years ago
Felix Ableitner 0dda2577e1 Refactor apub code, split up large files 4 years ago
Nutomic 70f7dd876f
Merge pull request #1188 from LemmyNet/fix_blocked_creator_outbox
Fixed an issue with blocked post creators in outbox.
4 years ago
Dessalines 907f8fff4c Updating deps. 4 years ago
Dessalines cb4a3a03a2 Fixed an issue with blocked post creators in outbox.
- Fixes #1186
4 years ago
Felix Ableitner c90c96fbf6 Respect disable downvotes setting when federating 4 years ago
Dessalines 8d0580461b
Merge pull request #1180 from LemmyNet/no_conflict_triggers
No send blocked and no conflict triggers
4 years ago
Dessalines 7fbad900d7 Addressing a few comments. 4 years ago
Dessalines e9ce14069e Removing some unecessary logging. 4 years ago
Dessalines c08d891742 Merge branch 'main' into no_conflict_triggers 4 years ago
Nutomic 299598f0c4
Remove unused fields on community/user json (#1178) 4 years ago
Felix Ableitner 26883208cd Create separate SendActivityTask for each destination 4 years ago
Felix Ableitner 60730e81d9 Avoid duplicate comment send, better activity logging 4 years ago