Fixed follow autoapproval not working with "instance" visibility level

This commit is contained in:
Eliot Berriot 2019-05-02 13:57:42 +02:00
parent 9d09e9f83c
commit 1345ba183c
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
2 changed files with 10 additions and 4 deletions

View file

@ -103,7 +103,8 @@ def dispatch_outbox(activity):
inbox_items = activity.inbox_items.filter(is_read=False).select_related()
if inbox_items.exists():
dispatch_inbox.delay(activity_id=activity.pk, call_handlers=False)
call_handlers = activity.type in ["Follow"]
dispatch_inbox.delay(activity_id=activity.pk, call_handlers=call_handlers)
if not preferences.get("federation__enabled"):
# federation is disabled, we only deliver to local recipients