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

FEATURE: Make max number of favorite configurable #13480

Merged
merged 1 commit into from
Jun 22, 2021

Conversation

nbianca
Copy link
Member

@nbianca nbianca commented Jun 22, 2021

It used to be hardcoded to 2 and now it uses max_favorite_badges site
setting. When zero, it disables favorite badges.

desktop and mobile with max_favorite_badges = 3

image

image

desktop and mobile with max_favorite_badges = 5

image

image

desktop and mobile with max_favorite_badges = 0 (fallback to the old behavior)

image

image

@nbianca nbianca requested a review from ZogStriP June 22, 2021 14:56
app/models/user.rb Outdated Show resolved Hide resolved
It used to be hardcoded to 2 and now it uses max_favorite_badges site
setting. When zero, it disables favorite badges.
@nbianca nbianca merged commit ee87d8c into master Jun 22, 2021
@nbianca nbianca deleted the feature_favorite_badges branch June 22, 2021 15:58
discourse-translator-bot pushed a commit that referenced this pull request Jun 23, 2021
It used to be hardcoded to 2 and now it uses max_favorite_badges site
setting. When zero, it disables favorite badges.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants