See #297: removed unused imports

This commit is contained in:
Eliot Berriot 2018-06-10 10:39:47 +02:00
parent 639882bd34
commit 9427f8b56e
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
82 changed files with 22 additions and 131 deletions

View file

@ -1,6 +1,3 @@
from . import serializers
from . import tasks
ACTIVITY_TYPES = [
"Accept",
"Add",
@ -52,9 +49,13 @@ OBJECT_TYPES = [
def deliver(activity, on_behalf_of, to=[]):
from . import tasks
return tasks.send.delay(activity=activity, actor_id=on_behalf_of.pk, to=to)
def accept_follow(follow):
from . import serializers
serializer = serializers.AcceptFollowSerializer(follow)
return deliver(serializer.data, to=[follow.actor.url], on_behalf_of=follow.target)