Skip to content

fix: include user replied posts in My Posts tab#51

Merged
naincy128 merged 1 commit into
release-ulmofrom
Cosmo2-938
May 15, 2026
Merged

fix: include user replied posts in My Posts tab#51
naincy128 merged 1 commit into
release-ulmofrom
Cosmo2-938

Conversation

@naincy128
Copy link
Copy Markdown
Collaborator

@naincy128 naincy128 commented May 13, 2026

Description

When a moderator replied/commented on another user’s discussion post, the thread did not appear in the moderator’s My Posts tab.

Root Cause

get_user_threads only considered threads authored by the user and did not include threads where the user had participated through comments/replies.

Changes Made

  • Updated My Posts filtering logic to include:
    • authored threads
    • commented/replied threads
  • Added support for both MySQL and MongoDB backends.
  • Preserved existing behavior for viewing another user’s posts by returning only authored threads.
  • Removed author_id from params after collecting thread IDs to avoid duplicate filtering.

Result

Threads where moderators actively participate through replies/comments are now visible in the My Posts tab.

Ticket

Cosmo2-938

@naincy128 naincy128 force-pushed the Cosmo2-938 branch 4 times, most recently from c8dc5a1 to f48e0c3 Compare May 13, 2026 07:16
@naincy128 naincy128 merged commit c94f1cd into release-ulmo May 15, 2026
13 checks passed
@naincy128 naincy128 deleted the Cosmo2-938 branch May 15, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants