remove unnecessary actor checking for (un)follows
This commit is contained in:
parent
1e8acd3c0b
commit
436a57971c
|
@ -245,7 +245,6 @@ async def handle_follow(actor, data, request):
|
||||||
following += [inbox]
|
following += [inbox]
|
||||||
DATABASE['relay-list'] = following
|
DATABASE['relay-list'] = following
|
||||||
|
|
||||||
if data['object'].endswith('/actor'):
|
|
||||||
asyncio.ensure_future(follow_remote_actor(actor['id']))
|
asyncio.ensure_future(follow_remote_actor(actor['id']))
|
||||||
|
|
||||||
message = {
|
message = {
|
||||||
|
@ -281,7 +280,6 @@ async def handle_undo(actor, data, request):
|
||||||
following.remove(inbox)
|
following.remove(inbox)
|
||||||
DATABASE['relay-list'] = following
|
DATABASE['relay-list'] = following
|
||||||
|
|
||||||
if child['object'].endswith('/actor'):
|
|
||||||
await unfollow_remote_actor(actor['id'])
|
await unfollow_remote_actor(actor['id'])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue