Commit graph

24 commits

Author SHA1 Message Date
Adam Kelly
b212456d0d Move signature code into fedireads.signatures. 2020-05-15 11:18:41 +01:00
Mouse Reeve
e76f96eb6c Unify concept of absolute_id and remote_id 2020-05-13 09:28:48 -07:00
Mouse Reeve
e11e1cc560 missing import in user model 2020-05-10 17:47:59 -07:00
Mouse Reeve
2e7d2f96f8 Cleans up base model 2020-05-10 13:38:47 -07:00
Mouse Reeve
67837f84b3 user activitypub serializer 2020-05-09 21:55:00 -07:00
Adam Kelly
fba78d7a0e Style fixes suggested by pylint. 2020-04-22 14:53:22 +01:00
Mouse Reeve
e7d18dada1 Keep track of remote servers
Fixes #32
2020-03-29 15:51:43 -07:00
Adam Kelly
ffe81291ad Use database constraint to prevent relationships with yourself. 2020-03-14 22:20:01 +00:00
Adam Kelly
b21c5fc98f Update follow and unfollow to use UserFollowRequest & UserFollows. 2020-03-11 12:37:19 +00:00
Adam Kelly
e050704c2c Split follows, follow requests and blocks into separate tables.
As discussed in issue #82
2020-03-11 12:37:19 +00:00
Mouse Reeve
67661274a6 Fixes bug in remote user absolute_id generator 2020-03-10 11:23:23 -07:00
Adam Kelly
971186ef3a Add field manually_approves_followers to db. 2020-03-09 20:29:11 +00:00
Adam Kelly
592c2b7dfd Reverse user_subject & user_object.
In the relationships table:

user_subject should be the user doing the following.
user_object should be the user who is followed.

This fixes a bug where unfollowing a user deletes the relationship in
both directions.
2020-02-24 16:10:09 +00:00
Adam Kelly
8cbca4229f Add following as a related_name for followers. 2020-02-24 15:10:03 +00:00
Mouse Reeve
20522cbd11 Minor formatting changes 2020-02-23 13:24:23 -08:00
Adam Kelly
e0266cb754 Add unique constraint to followers relationship. #47 2020-02-23 09:08:11 +00:00
Mouse Reeve
9c645c6ab6 Fixes mistake in parent model definition 2020-02-20 17:34:05 -08:00
Mouse Reeve
27b9326dd9 Adds Favorite table
works on #28
2020-02-18 23:26:42 -08:00
Mouse Reeve
95bfb61cf3 Follow/unfollow behavior
Fixes #23
2020-02-18 22:44:13 -08:00
Mouse Reeve
14d300162d Send a different review to mastodon than to fedireads 2020-02-18 17:30:23 -08:00
Mouse Reeve
b6964dd8aa Bug fixes and absolute ids 2020-02-17 17:53:40 -08:00
Mouse Reeve
71027a1459 Use absolute id model property 2020-02-16 19:17:11 -08:00
Mouse Reeve
5cd43d53ba Cleaning up model fields 2020-02-15 15:00:54 -08:00
Mouse Reeve
a1fbba1ba3 move things into different files 2020-02-11 17:48:31 -08:00