Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Fix) Notification setting logic when notification doesn't exist #4539

Merged
merged 2 commits into from
Mar 9, 2025

Conversation

HDVinnie
Copy link
Collaborator

@HDVinnie HDVinnie commented Mar 9, 2025

The previous logic was evaluating the null non-existent notification setting as false.

@Roardom Roardom force-pushed the Notifications branch 3 times, most recently from ac8ba67 to 4ebb374 Compare March 9, 2025 06:31
Tagging a user while creating a comment will both create a notification for the tag, as well as create a notification to the user who made the torrent/request. We only want to assert that the count of notifications created during the test is 1 only for the tag notifications and not count the other notification created.
@Roardom Roardom changed the title (Update) Notifications return to be empty array if null (Fix) Notification setting logic when notification doesn't exist Mar 9, 2025
@Roardom Roardom merged commit e1b6909 into 8.x.x Mar 9, 2025
12 checks passed
@HDVinnie HDVinnie deleted the Notifications branch March 9, 2025 14:29
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