Removed dead code

This commit is contained in:
Eliot Berriot 2018-12-06 10:14:04 +01:00
parent 752a06c20a
commit 24b8ca7227
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
2 changed files with 2 additions and 33 deletions

View file

@ -386,15 +386,3 @@ def get_actors_from_audience(urls):
if not final_query:
return models.Actor.objects.none()
return models.Actor.objects.filter(final_query)
def get_inbox_urls(actor_queryset):
"""
Given an actor queryset, returns a deduplicated set containing
all inbox or shared inbox urls where we should deliver our payloads for
those actors
"""
values = actor_queryset.values("inbox_url", "shared_inbox_url")
urls = set([actor["shared_inbox_url"] or actor["inbox_url"] for actor in values])
return sorted(urls)