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