Commit Graph

42 Commits (b3163f99f44f513f18aae69bbd5148e5cc04442a)

Author SHA1 Message Date
dessalines 110167f085 Ensure that comments are always delivered to the parent creator (fixes #1325) (#156)
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>
4 years ago
Dessalines c6357f3c86
Deletion on fetch (#1345)
* Delete local object on fetch when receiving HTTP 410, split fetcher (fixes #1256)

* Removing submodules

* Trying to re-init submodule

* Trying to re-init submodule 2

* Trying to re-init submodule 3

* Logging line.

* Removing submodules

* Adding again.

* Adding again 2.

* Adding again 3.

* Adding again 4.

* Adding again 5.

* Adding again 6.

* Adding again 7.

* Adding again 8.

* Adding again 9.

* Add more clippy lints, remove dbg!() statement

* Adding again 10.

* Adding again 11.

* Adding again 12.

Co-authored-by: Felix Ableitner <me@nutomic.com>
4 years ago
Felix Ableitner 95e30f0e08 Split up lemmy_db_views, put lemmy_rate_limit into lemmy_utils 4 years ago
Felix Ableitner d5efebbf47 Split lemmy_db into lemmy_db_queries, lemmy_db_aggregates and lemmy_db_views 4 years ago
Dessalines 1a0d1f64f0 Merge remote-tracking branch 'origin/split-db-workspace' into move_views_to_diesel_split 4 years ago
Felix Ableitner 5231666465 Move remaining structs from lemmy_db::source to lemmy_db_schema 4 years ago
Felix Ableitner a7e231b35b Move community to lemmy_db_schema 4 years ago
Dessalines 2d7d9cf7d8 Some API cleanup, adding site_id to site aggregates. 4 years ago
Felix Ableitner f842bbff8d Move user to lemmy_db_schema, create traits for impls 4 years ago
Felix Ableitner 114f3cbfb5 Move comment, post definitions into lemmy_db_schema 4 years ago
Dessalines 1cf520254d Adding private message view. 4 years ago
Dessalines 313f0467c8 Adding moderator views. 4 years ago
Dessalines 471abf7f29 Removing old comment_view. 4 years ago
Dessalines f456f5da46 Re-organizing source tables into a different folder. 4 years ago
Dessalines 35bf50ab15 Removing old postview. 4 years ago
Dessalines 46e38bf714 Merge branch 'main' into move_views_to_diesel 4 years ago
Nutomic 9cc1cfc973
Apub local object handling (#1297)
* 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
4 years ago
Dessalines 36f7b20784 Removing old communityviews 4 years ago
Dessalines 7731479607 Adding SiteAggregates. 4 years ago
Felix Ableitner a7b72ed5c4 Set valid context for our extra fields (ref #1220) 4 years ago
Felix Ableitner cd3f20e49b Populate `content` with HTML, and `source` with markdown (ref #1220) 4 years ago
Felix Ableitner 8675fed49c Reduce visibility of some structs and methods (replaces #1266) 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 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 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
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
Felix Ableitner 3d5647b16f Limit amount of HTTP requests to handle activities (fixes #1221) 4 years ago
Felix Ableitner 1a3b96b054 Organise activity receive files by object type, not by activity type 4 years ago
Felix Ableitner 695272f980 Create rustdoc for activitypub code 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 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