summaryrefslogtreecommitdiffstats
path: root/server/src/apub/community.rs
AgeCommit message (Collapse)Author
2020-07-14Security/fix permission bugs (#966)ryexandra
* secure the `EditPost` API endpoint * Check user is moderator in BanFromCommunity * secure the `EditComment` API endpoint * pass orig `read` prob when not explicitly updating it. * Block random users from adding mods. * use cleaner logic from `EditPost` * prevent editing a community by a mod from transfering ownership to them * secure `read` action in `EditPrivateMessage` * Add check in UserMention * only let the indended recipient mark as read * simplify booleans to satisfy clippy * requested changes + cargo +nightly fmt * fix to pass federation tests for deleting comments and posts Co-authored-by: chiminh <chiminh.tutanota.com> Co-authored-by: Hex Bear <buildadangtrain@protonmail.com>
2020-07-13Make reads from activitypub objects immutableFelix Ableitner
2020-07-10Split code into cargo workspaces (#67)nutomic
More fixes - fixed docker builds - fixed mentions regex test - fixed DATABASE_URL stuff - change schema path in diesel.toml Address review comments - add jsonb column back into activity table - remove authors field from cargo.toml - adjust LEMMY_DATABASE_URL env var usage - rename all occurences of LEMMY_DATABASE_URL to DATABASE_URL Decouple utils and db Split code into cargo workspaces Co-authored-by: Felix Ableitner <me@nutomic.com> Reviewed-on: https://yerbamate.dev/LemmyNet/lemmy/pulls/67
2020-07-08Migrate user and group to new activitystreams libraryFelix Ableitner
2020-07-01Federation async (#848)Riley
* Asyncify more * I guess these changed * Clean PR a bit * Convert more away from failure error * config changes for testing federation * It was DNS So actix-web's client relies on TRust DNS Resolver to figure out where to send data, but TRust DNS Resolver seems to not play nice with docker, which expressed itself as not resolving the name to an IP address _the first time_ when making a request. The fix was literally to make the request again (which I limited to 3 times total, and not exceeding the request timeout in total) * Only retry for connecterror Since TRust DNS Resolver was causing ConnectError::Timeout, this change limits the retry to only this error, returning immediately for any other error * Use http sig norm 0.4.0-alpha for actix-web 3.0 support * Blocking function, retry http requests * cargo +nightly fmt * Only create one pictrs dir * Don't yarn build * cargo +nightly fmt
2020-06-16Fix community description federation (ref #647)Felix Ableitner
Also disable the actor refetch interval in debug builds.
2020-06-03migrate followFelix Ableitner
2020-06-03migrate tombstoneFelix Ableitner
2020-06-01address review commentsFelix Ableitner
2020-05-30fix comment notificationsFelix Ableitner
2020-05-30get it working (mostly)Felix Ableitner
2020-05-28Let community announce postsFelix
2020-05-18Use activitystreams-extFelix
2020-05-16Merge branch 'yerba_rework-imports' into federationDessalines
2020-05-16Rework importsFelix
2020-05-15Federated mentions. Fixes #681 (#717)Dessalines
* Federated mentions. Fixes #681 * Changing some todos, adding comments.
2020-05-14Use ActorType for sign/verify, instead of passing raw privatekey/actor_idFelix
2020-05-14Add helper function for Activity::create()Felix
2020-05-14remove outdated commentsFelix
2020-05-05Federate community category and nsfwFelix
2020-05-03Adding undo follow community.Dessalines
2020-05-03Merge branch 'federation' into federated_remove_actionsDessalines
2020-05-03Some additional notes, reorg.Dessalines
2020-05-03Adding federated mod remove actions.Dessalines
2020-05-01Add undos for delete community, post, and comment.Dessalines
2020-05-01Adding federated community, comment, and post deletes.Dessalines
- Unit tests added too. - No undeletes working yet.
2020-04-29wip: add former_type to tombstoneFelix
2020-04-29Address comments, implement delete for posts and commentsFelix
2020-04-28Implement deleting communitiesFelix
2020-04-28Adding federated post and comment likes.Dessalines
2020-04-27Adding activity table inserts.Dessalines
2020-04-27Lots of additions to federation.Dessalines
- Added a shared inbox. - Added federated comments, comment updates, and tests. - Abstracted ap object sends into a common trait.
2020-04-26Making a trait function for follow and accept.Dessalines
2020-04-24Adding get_public_key_ext() to ActorType trait.Dessalines
2020-04-24Use an associated type instead of Generic.Dessalines
2020-04-24Some more cleanup.Dessalines
2020-04-24Some fed fixes.Dessalines
2020-04-17Added documentation for most functionsFelix
2020-04-14Implemented follow/acceptFelix
2020-04-13Get inbox working properlyFelix
2020-04-12Added comments about how to federate additional post/user fieldsFelix
2020-04-10Federate actor public keysFelix
2020-04-10more todosFelix
2020-04-10Rename federation-test to federation, puller.rs to fetcher.rsFelix
2020-04-08Use Url instead of StringFelix Ableitner
2020-04-07Get users federatedFelix Ableitner
2020-04-07Store remote communities/posts in db, federate posts!Felix Ableitner
2020-04-03Move and rename some functionsFelix Ableitner
2020-04-03Avoid using database views in federation codeFelix Ableitner
2020-04-03Share list of communities over apub, some refactoringFelix Ableitner