Show More
@@ -1,3 +1,4 b'' | |||||
|
1 | from boards import settings | |||
1 | from boards.models import Tag |
|
2 | from boards.models import Tag | |
2 | from boards.models.thread import FAV_THREAD_NO_UPDATES |
|
3 | from boards.models.thread import FAV_THREAD_NO_UPDATES | |
3 |
|
4 | |||
@@ -126,6 +127,9 b' class SettingsManager:' | |||||
126 |
|
127 | |||
127 | def add_or_read_fav_thread(self, opening_post): |
|
128 | def add_or_read_fav_thread(self, opening_post): | |
128 | threads = self.get_fav_threads() |
|
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 | thread = opening_post.get_thread() |
|
133 | thread = opening_post.get_thread() | |
130 | # Don't check for new posts if the thread is archived already |
|
134 | # Don't check for new posts if the thread is archived already | |
131 | if thread.is_archived(): |
|
135 | if thread.is_archived(): |
@@ -28,6 +28,7 b' DefaultImageViewer = simple' | |||||
28 | LastRepliesCount = 3 |
|
28 | LastRepliesCount = 3 | |
29 | ThreadsPerPage = 3 |
|
29 | ThreadsPerPage = 3 | |
30 | ImagesPerPageGallery = 20 |
|
30 | ImagesPerPageGallery = 20 | |
|
31 | MaxFavoriteThreads = 20 | |||
31 |
|
32 | |||
32 | [Storage] |
|
33 | [Storage] | |
33 | # Enable archiving threads instead of deletion when the thread limit is reached |
|
34 | # Enable archiving threads instead of deletion when the thread limit is reached |
General Comments 0
You need to be logged in to leave comments.
Login now