Merge branch 'follows' into 'master'

remove unnecessary actor checking for (un)follows

See merge request pleroma/relay!22
This commit is contained in:
Haelwenn 2020-11-12 13:43:09 +00:00
commit a15d734218

View file

@ -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'])