private account support
When all the prerequisites for #175 (closed) are finished, we can implement private accounts in Pleroma pretty easily. This bug is about that.
-
User.info["locked"] means the account is locked -
Mastodon API denotes locked status -
Learning locked status for remote accounts -
Not immediately Accept
ing theFollow
activities -
Mastodon API: /api/v1/follow_requests
endpoint is hooked up properly -
User.get_follow_requests() actually works -
Mastodon API: /api/v1/whatever
for accepting/rejecting the follow requests -
Mastodon API: support for locking the account -
Twitter API: support for locking the account -
Twitter API: support for fetching pending follow requests -
Twitter API: support for approving or rejecting a follow request -
Handle Unfollow while the follow request is pending (update the follow request's disposition) -
tests (both local and remote follower cases) - [x] following a locked account should not update the followers collection before approval - [x] approving a follow request should update the followers collection - [x] rejecting a follow request should not update the followers collection - [x] Mastodon API tests
Edited by kaniini