Commit graph

25 commits

Author SHA1 Message Date
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