Skip to content

Fix double reaction bug - #13329

Merged
rickyrombo merged 4 commits into
mainfrom
mjp-revert-relike-bug
Oct 28, 2025
Merged

Fix double reaction bug#13329
rickyrombo merged 4 commits into
mainfrom
mjp-revert-relike-bug

Conversation

@rickyrombo

@rickyrombo rickyrombo commented Oct 28, 2025

Copy link
Copy Markdown
Contributor

Indexing was getting stalled from the previous fix because the primary key would already exist.

This change reverts #13282 and fixes it a different way by moving the check for existing deleted comments to the validation logic, and adding the code to handle that case in the reaction creation logic.

Also adds commands for audius-cmd and tested locally.

NOTE: Re-liking a comment will not trigger a new notification. Made a call that we probably don't want to spam notifs every time it toggles.

@changeset-bot

changeset-bot Bot commented Oct 28, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 719e744

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dylanjeffers dylanjeffers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

good stuff

existing_reaction = params.existing_records[EntityType.COMMENT_REACTION.value].get(
(user_id, comment_id)
)
if existing_reaction and existing_reaction.is_delete:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice much better

@rickyrombo
rickyrombo merged commit 0965df6 into main Oct 28, 2025
4 of 6 checks passed
@rickyrombo
rickyrombo deleted the mjp-revert-relike-bug branch October 28, 2025 22:03
audius-infra pushed a commit that referenced this pull request Oct 29, 2025
[0965df6] Fix double reaction bug (#13329) Marcus Pasell
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.

2 participants