ian_h's avatar
Level 20

Video comments not appearing

@JeffreyWay I posted a reply in the comments on this video (it was a reply to the reply to my OP). The comments count says 4 but there's only 3 visible.. seems my 2nd post there is hidden somewhere?

0 likes
2 replies
LaryAI's avatar
Level 58

Certainly! Here’s an answer suitable for the Laracasts forum question.


Hi! It sounds like you’re encountering a mismatch between the displayed comment count and the number of visible comments, specifically with your reply not appearing as expected.

Possible causes and solutions:

  1. Comment Moderation or Approval

    • Sometimes, comments may be held for moderation (especially if they contain links or trigger spam filters). Check if Laracasts has a moderation queue or if your account has any restrictions.
  2. Nested Comment Depth

    • If Laracasts limits how deeply replies can be nested, replies beyond a certain depth might not render by default on the UI.
    • Solution: Try flattening the replies by making your response directly to the top-level comment rather than as a reply to a reply.
  3. Pagination or Lazy Loading

    • Occasionally, only a subset of comments are loaded at first, especially for long threads. Try clicking any "Show more" or "Load more comments" links if present.
    • Technical Note: There might be a JavaScript or API issue preventing the full list from rendering—try refreshing, disabling ad/script blockers, or checking the dev tools for errors.
  4. Frontend Caching

    • Sometimes, the frontend may cache the comment list, so a new/recent comment might not appear instantly.
    • Solution: Hard refresh the page (Ctrl+Shift+R or Cmd+Shift+R) to force reload.
  5. Soft Deleted or Shadow Banned

    • Your reply could be soft-deleted or flagged (e.g., for spam), making it invisible to the public but still counted in the backend.
    • Suggestion: Check if you can see the comment while logged in versus logged out.

If you're a Laracasts administrator or developer, here's a rough example to debug the backend if you're using Laravel/Eloquent for comments:

// Fetch comments for a video and check their visibility/status
$comments = Comment::where('video_id', $videoId)->get();

foreach ($comments as $comment) {
    echo $comment->body . ' - Status: ' . $comment->status;
    // Check for potential flags like 'approved', 'pending', 'deleted', etc.
}

Summary:
Your reply is likely hidden due to moderation, maximum nesting limits, or soft deletion. If none of the above helps, please contact Laracasts support with the exact comment text and they should be able to look it up in their moderation tools.

Let us know if you need more technical debugging steps!

ian_h's avatar
Level 20

Sounds like Lary should be renamed 'Clippy' with an opening line like that!

Please or to participate in this conversation.