Skip to content

Conversation

@everettbu
Copy link
Contributor

Test 2

@lizard-boy
Copy link

cursor review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Bugbot free trial expires on August 11, 2025
Learn more in the Cursor dashboard.

tu.save!

perform_show_response
end
Copy link

Choose a reason for hiding this comment

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

Bug: Unsubscribe Fails with Nil User or TopicUser

The unsubscribe method in TopicsController can raise a NoMethodError. This occurs if current_user is nil (e.g., anonymous access) when attempting to access current_user.id. It also occurs if TopicUser.find_by returns nil (meaning no existing record for the user/topic combination), leading to attempts to access tu.notification_level or call tu.save! on a nil object.

Locations (1)
Fix in Cursor Fix in Web

@github-actions
Copy link

This pull request has been automatically marked as stale because it has been open for 60 days with no activity. To keep it open, remove the stale tag, push code, or add a comment. Otherwise, it will be closed in 14 days.

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.

3 participants