diff --git a/boards/models/tag.py b/boards/models/tag.py --- a/boards/models/tag.py +++ b/boards/models/tag.py @@ -7,6 +7,8 @@ from django.db.models import Count MAX_TAG_FONT = 1 MIN_TAG_FONT = 0.2 +TAG_POPULARITY_MULTIPLIER = 10 + OPENING_POST_POPULARITY = 0.1 REPLY_POPULARITY = 0.005 ARCHIVE_POPULARITY_MODIFIER = 0.1 @@ -82,7 +84,8 @@ class Tag(models.Model): popularity = self.get_popularity() - font_value = MIN_TAG_FONT + popularity + font_value = popularity * TAG_POPULARITY_MULTIPLIER + font_value = max(font_value, MIN_TAG_FONT) font_value = min(font_value, MAX_TAG_FONT) return str(font_value)