Skip to content

Conversation

@ice-endymion
Copy link
Contributor

Description

  • fixes reposts of comments/replies disappearing from profile after app restart

Additional Notes

Removed the reply marker exclusion from search extensions. The existing entityFilter already properly excludes direct replies via parentEvent == null check, while allowing reposts (which don't have parentEvent) to pass through.

Task ID

ION-4994

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation
  • Chore

Copilot AI review requested due to automatic review settings January 15, 2026 15:08
@ice-morpheus ice-morpheus enabled auto-merge (squash) January 15, 2026 15:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where reposts of comments/replies would disappear from a user's profile after an app restart. The fix removes redundant TagMarkerSearchExtension filters that were incorrectly excluding reposts of replies.

Changes:

  • Removed two TagMarkerSearchExtension instances that negatively filtered reply markers from the search query
  • Relies on existing entityFilter logic which properly handles reply exclusion via parentEvent == null checks

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ice-endymion ice-endymion force-pushed the fix/repost-comments-persistence branch 3 times, most recently from 1f35d73 to 2bd7dca Compare January 15, 2026 16:03
@ice-morpheus ice-morpheus force-pushed the fix/repost-comments-persistence branch from 2bd7dca to b5b2a54 Compare January 15, 2026 16:46
@ice-morpheus ice-morpheus force-pushed the fix/repost-comments-persistence branch from b5b2a54 to 017bbbe Compare January 16, 2026 08:25
...[
for (final kind in withTokensKinds) ...SearchExtensions.withTokens(forKind: kind).extensions,
],
TagMarkerSearchExtension(
Copy link
Contributor

@ice-orion ice-orion Jan 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This leads to fetching the comments, that we don't need on that page, how does it fix the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants