mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-21 22:17:59 +00:00
Merge branch 'follows' into 'master'
remove unnecessary actor checking for (un)follows See merge request pleroma/relay!22
This commit is contained in:
commit
a15d734218
|
@ -242,7 +242,6 @@ async def handle_follow(actor, data, request):
|
|||
following += [inbox]
|
||||
DATABASE['relay-list'] = following
|
||||
|
||||
if data['object'].endswith('/actor'):
|
||||
asyncio.ensure_future(follow_remote_actor(actor['id']))
|
||||
|
||||
message = {
|
||||
|
@ -278,7 +277,6 @@ async def handle_undo(actor, data, request):
|
|||
following.remove(inbox)
|
||||
DATABASE['relay-list'] = following
|
||||
|
||||
if child['object'].endswith('/actor'):
|
||||
await unfollow_remote_actor(actor['id'])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue