Commit Graph

22 Commits (cf214ff5833013b7dfc84f7101fa1cf6df6cdf9e)

Author SHA1 Message Date
Nutomic 28d6370c35
Rewrite delete activities (#1699)
* Limit type/method visibility in apub code

* Simplify db_queries traits by removing generics

* Simplify delete activity implementation

* Rewrite delete activities

* Implement helper functions for websocket message sending

* When receiving delete reason as empty string, change to none
3 years ago
Nutomic 353a1fe0a0
Rewrite activitypub following, person, community, pm (#1692)
* Rewrite following activities

* Rewrite person apub

* Rewrite community apub

* Rewrite private message activity sending
3 years ago
Felix Ableitner 57b6ecaf40 Simplify lemmy_context() function (dont return errors) 3 years ago
Felix Ableitner ff265c7ebc Rewrite apub post (de)serialization using structs (ref #1657) 3 years ago
Nutomic c7de1fcf24
Apub inbox rewrite (#1652)
* start to implement apub inbox routing lib

* got something that almost works

* it compiles!

* implemented some more

* move library code to separate crate (most of it)

* convert private message handlers

* convert all comment receivers (except undo comment)

* convert post receiver

* add verify trait

* convert community receivers

* add cc field for all activities which i forgot before

* convert inbox functions, add missing checks

* convert undo like/dislike receivers

* convert undo_delete and undo_remove receivers

* move block/unblock activities

* convert remaining activity receivers

* reimplement http signature verification and other checks

* also use actor type for routing, VerifyActivity and SendActivity traits

* cleanup and restructure apub_receive code

* wip: try to fix activity routing

* implement a (very bad) derive macro for activityhandler

* working activity routing!

* rework pm verify(), fix tests and confirm manually

also remove inbox username check which was broken

* rework following verify(), fix tests and test manually

* fix post/comment create/update, rework voting

* Rewrite remove/delete post/comment, fix tests, test manually

* Rework and fix (un)block user, announce, update post

* some code cleanup

* rework delete/remove activity receivers (still quite messy)

* rewrite, test and fix add/remove mod, update community handlers

* add docs for ActivityHandler derive macro

* dont try to compile macro comments
3 years ago
Dessalines f54209c451
Running clippy --fix (#1647) 3 years ago
Dessalines 12d50e42b4
Change join.lemmy.ml to join-lemmy.org (#1628) 3 years ago
Felix Ableitner 722cdb78ba Split lemmy_apub crate into two parts apub and apub_receive 4 years ago
Felix Ableitner 34bdf4c7c5 Federate Matrix ID (fixes #1438) 4 years ago
Dessalines 8a10a9079f Merge remote-tracking branch 'yerba/federated-moderation' 4 years ago
Felix Ableitner 459b95bc7e Make previous commit compile 4 years ago
Grishka 115b986edc uh 4 years ago
Grishka c14a505456 Fix JSON-LD contexts 4 years ago
Felix Ableitner 4f54108a9c Merge branch 'main' into federated-moderation 4 years ago
Dessalines ddf4a667b1 ~80% done 4 years ago
Felix Ableitner 0c484e8c76 Move moderators collection to separate HTTP endpoint 4 years ago
Felix Ableitner beb8b9fe69 Use collection for moderators, instead of `attributedTo` (ref #1061) 4 years ago
Felix Ableitner 7189328f80 Remove category from activitypub context 4 years ago
Felix Ableitner 3141ad31de Remove categories (fixes #1429) 4 years ago
Felix Ableitner 105dfc93f1 Make apub extension fields optional (ref #1220) 4 years ago
Nutomic 3d578f9df2
Use Url type for ap_id fields in database (fixes #1364) (#1371) 4 years ago
Felix Ableitner 3b64c58198 Move most code into crates/ subfolder 4 years ago