Don't send activities to ourselves
Ensure that comments are always delivered to the parent creator (fixes#1325)
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/156
Co-Authored-By: dessalines <dessalines@noreply.yerbamate.ml>
Co-Committed-By: dessalines <dessalines@noreply.yerbamate.ml>
* Limit visibility of some traits and methods
* WIP: alternative way to handle non-local object parsing
* finish this
* cleanup
* Move check for locked post into Comment::from_apub()
* Mark user as updated after fetching
* Should set last_refreshed_at, not updated
* Add ApubObject trait in DB, with method read_from_apub_id()
* Create shared, generic implementation for `FromApub`, prefer local data
* Check for community ban when parsing post/comment (fixes#1287)
* Fix tests (changes in get_object_from_apub() prevented `Update` from working)
* Support parsing `like.object` either as URL or object
* Send out like.object as URL, instead of full object (fixes#1283)
* add todo
Fixed comparison
Add check to make sure that inbox doesnt receive local activities (ref #1283)
Co-authored-by: Felix Ableitner <me@nutomic.com>
Reviewed-on: https://yerbamate.ml/LemmyNet/lemmy/pulls/147
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
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
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