Commit graph

46 commits

Author SHA1 Message Date
silverpill 462da87e9b Create DbActor type and use it to represent actor_profile.actor_json column value 2023-03-27 17:43:01 +00:00
silverpill 7d3c558ede Move utils to mitra-utils crate 2023-02-18 23:12:36 +00:00
silverpill 6945ded963 Group imports 2023-02-12 23:07:19 +00:00
silverpill bc3184cf77 Rename new_uuid function to generate_ulid 2023-02-12 22:04:31 +00:00
silverpill 01f56d9ef7 Use re-exported tokio_postgres::GenericClient trait 2023-01-18 01:01:45 +00:00
silverpill 533cd81aa6 Switch to rust edition 2021 2022-12-15 19:54:51 +00:00
silverpill 1b588a86e0 Handle non-nested Undo(Follow) activities 2022-12-13 01:12:42 +00:00
silverpill f2037c9516 Save activity ID when processing remote follow request 2022-12-13 00:54:38 +00:00
silverpill b0f9b3537e Add activity_id column to follow_request table 2022-12-13 00:13:55 +00:00
silverpill d1939b10d5 Move DatabaseError to database module 2022-12-03 22:57:09 +00:00
silverpill ec349afc80 Reset repost and reply visibility settings after unfollowing 2022-10-22 16:06:50 +00:00
silverpill fa49e2b4c2 Remove acct field from ProfileCreateData struct 2022-10-04 21:18:55 +00:00
silverpill a6c525f35d Add hostname column to actor_profile table and replace acct with generated column 2022-10-04 16:51:22 +00:00
silverpill 93ebdfadd4 Restrict module visibility and remove dead code 2022-10-02 21:23:16 +00:00
silverpill 81c590559e Use u16 when working with page size 2022-09-29 21:47:35 +00:00
silverpill 7600efccb5 Add subscribers_count field to Account object 2022-09-13 19:15:58 +00:00
silverpill bdcdb06c51 Add pagination headers to followers/following API responses 2022-08-07 18:27:28 +00:00
silverpill a00b704cf4 Rename actor module to actors::types 2022-07-23 21:41:49 +00:00
silverpill 90d0a6870e Refactor unfollow_account view 2022-06-02 03:28:58 +00:00
silverpill 1c098cb6b2 Add test for remote follow sequence 2022-06-02 03:28:58 +00:00
silverpill 60b683b657 Allow to hide replies from given author from home timeline 2022-03-09 20:42:02 +00:00
silverpill f14e762ee3 Allow to hide reposts made by given actor from home timeline 2022-02-23 16:55:25 +00:00
silverpill 0f47fa201d Move get_relationship function to mastodon_api module 2022-02-21 22:32:36 +00:00
silverpill 0a2a145807 Optimize database queries in can_view_post() 2022-02-08 18:25:48 +00:00
silverpill 9330038141 Add "subscribers-only" post visibility setting 2022-02-06 12:05:20 +00:00
silverpill 71fc2d9dad Save subscription state to database when processing blockchain event 2022-02-06 12:05:14 +00:00
silverpill 4e49f113e7 Add subscription relationship type 2022-02-05 23:53:01 +00:00
silverpill a3a0a6053d Add relationship type column to relationship table 2022-02-03 00:15:52 +00:00
silverpill 7de7f7a501 Refactor get_relationship function and optimize SQL query 2022-02-02 21:56:34 +00:00
silverpill a81d0ef216 Remove get_relationships function and use get_relationship instead 2022-02-02 21:31:40 +00:00
silverpill 548e000b3e Add test for get_relationship function 2022-02-02 19:55:01 +00:00
silverpill adb5a6c651 Verify follow request target when processing Accept(Follow)
Activity sender and the target must be the same.
2022-01-03 23:22:52 +00:00
silverpill 6d331f7669 Allow calling follow/unfollow API methods multiple times
For compatibility with Mastodon.
2022-01-03 18:37:07 +00:00
silverpill 3993c76c65 Add API methods for retrieving followers and following lists 2022-01-02 22:06:25 +00:00
silverpill 40958500c1 Add ID column to relationship table 2022-01-02 15:52:20 +00:00
silverpill c11cd26961 Move get_followers to relationships::queries module 2022-01-02 13:42:10 +00:00
silverpill 3662d1a558 Don't call get_relationship in relationships::queries::(un)follow 2021-12-26 15:06:21 +00:00
silverpill f785541205 Delete accepted follow request when unfollowing actor 2021-12-17 22:35:39 +00:00
silverpill 12c21d86f8 Use ULIDs instead of v4 UUIDs for identifiers 2021-12-02 01:36:35 +00:00
silverpill 5547403200 Use macros to create FromSql/ToSql implementations for int enums 2021-11-19 17:47:26 +00:00
silverpill c473070fd4 Configure linter and fix its warnings 2021-11-13 17:37:31 +00:00
silverpill 3d537f5987 Properly catch violations of unique constraint 2021-11-12 23:10:20 +00:00
silverpill b50da3e3a4 Create notification only if recipient is local user 2021-10-29 11:54:17 +00:00
silverpill c4ea2900c8 Notify user about new followers 2021-10-14 15:10:25 +00:00
silverpill 602e4ec229 Add handler for Reject(Follow) activity 2021-09-20 21:06:48 +00:00
silverpill fdef4b6e6a Initial commit 2021-09-14 12:24:05 +00:00