Show More
@@ -1,3 +1,4 b'' | |||
|
1 | from boards import settings | |
|
1 | 2 | from boards.models import Tag |
|
2 | 3 | from boards.models.thread import FAV_THREAD_NO_UPDATES |
|
3 | 4 | |
@@ -126,6 +127,9 b' class SettingsManager:' | |||
|
126 | 127 | |
|
127 | 128 | def add_or_read_fav_thread(self, opening_post): |
|
128 | 129 | threads = self.get_fav_threads() |
|
130 | ||
|
131 | max_fav_threads = settings.get_int('View', 'MaxFavoriteThreads') | |
|
132 | if (str(opening_post.id) in threads) or (len(threads) < max_fav_threads): | |
|
129 | 133 | thread = opening_post.get_thread() |
|
130 | 134 | # Don't check for new posts if the thread is archived already |
|
131 | 135 | if thread.is_archived(): |
General Comments 0
You need to be logged in to leave comments.
Login now