Skip to content

Commit a3bf3e5

Browse files
committed
Update VideoController, fix comment status state
1 parent 9e07f6a commit a3bf3e5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/Http/Controllers/Api/VideoController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ public function storeComment(StoreCommentRequest $request, $vid)
534534
$comment->video_id = $vid;
535535
$comment->profile_id = $pid;
536536
$comment->caption = $body;
537+
$comment->status = 'active';
537538
$comment->save();
538539
$parent->recalculateReplies();
539540
$parent->saveQuietly();
@@ -550,6 +551,7 @@ public function storeComment(StoreCommentRequest $request, $vid)
550551
$comment->video_id = $vid;
551552
$comment->profile_id = $pid;
552553
$comment->caption = $body;
554+
$comment->status = 'active';
553555
$comment->save();
554556

555557
$comment->syncHashtagsFromCaption();

0 commit comments

Comments
 (0)