Commit 215cf06e authored by Yábir García's avatar Yábir García

When handling a follow, actually follow. There was commented lines

parent 3298eb0e
......@@ -8,6 +8,7 @@ from settings import DOMAIN
from models.status import Status
from models.user import UserProfile
from managers.notification_manager import NotificationManager
from activityPub import activities
from activityPub.data_signature import *
......@@ -19,6 +20,8 @@ from api.v1.helpers import sign_data
from tasks.config import huey # import the huey we instantiated in
from tasks.redis.spreadStatus import spread_status
logger = logging.getLogger(__name__)
......@@ -47,8 +50,8 @@ def handle_follow(activity):
# Handle local things
message = {
"@context": "",
"type": "Accept",
......@@ -120,14 +123,14 @@ def handle_create(activity):
"sensitive": False,
"remote": True,
"story": False,
status = Status.create(**data)
spread_status(status, [], False)
for follow_targets in followers_of.followers():
\ No newline at end of file
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment