Skip to content

Commit 877d722

Browse files
committed
Update CreateHandler
1 parent a3bf3e5 commit 877d722

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/Federation/Handlers/CreateHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ private function createComment(array $object, Profile $actor, Video $video): Com
281281
$comment->profile_id = $actor->id;
282282
$comment->caption = $this->extractContent($object);
283283
$comment->visibility = $visibility;
284+
$comment->status = 'active';
284285
$comment->ap_id = $object['id'] ?? null;
285286
$comment->created_at = $this->extractPublishedDate($object);
286287
$comment->updated_at = now();
@@ -313,6 +314,7 @@ private function createCommentReply(array $object, Profile $actor, int $videoId,
313314
$reply->profile_id = $actor->id;
314315
$reply->caption = $this->extractContent($object, 'content');
315316
$reply->visibility = $visibility;
317+
$reply->status = 'active';
316318
$reply->ap_id = $object['id'] ?? null;
317319
$reply->created_at = $this->extractPublishedDate($object);
318320
$reply->updated_at = now();

0 commit comments

Comments
 (0)