mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 04:39:16 +02:00
See #297: removed unused imports
This commit is contained in:
parent
639882bd34
commit
9427f8b56e
82 changed files with 22 additions and 131 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue