Skip to content

FEATURE: per-topic unsubscribe option in emails#2

Open
everettbu wants to merge 1 commit into
email-notifications-enhancementfrom
topic-email-management
Open

FEATURE: per-topic unsubscribe option in emails#2
everettbu wants to merge 1 commit into
email-notifications-enhancementfrom
topic-email-management

Conversation

@everettbu

Copy link
Copy Markdown
Contributor

Test 2

@lizard-boy

Copy link
Copy Markdown

cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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