##// END OF EJS Templates
Fixed showing posts with tripcode in feed
neko259 -
r1804:052b7771 default
parent child Browse files
Show More
@@ -93,7 +93,7 b' class NothingDownloader(Downloader):'
93 93 content_type = response_head.headers[HEADER_CONTENT_TYPE].split(';')[0]
94 94 return content_type in TYPE_URL_ONLY
95 95 else:
96 return True
96 return False
97 97
98 98 @staticmethod
99 99 def download(url: str):
@@ -33,7 +33,7 b' class TripcodeFilter(FeedFilter):'
33 33 filtered_posts = posts
34 34 tripcode = request.GET.get('tripcode', None)
35 35 if tripcode:
36 filtered_posts = filtered_posts.filter(tripcode)
36 filtered_posts = filtered_posts.filter(tripcode=tripcode)
37 37 return filtered_posts
38 38
39 39
@@ -131,7 +131,7 b' INSTALLED_APPS = ('
131 131 # 'django.contrib.admindocs',
132 132 'django.contrib.messages',
133 133
134 'debug_toolbar',
134 #'debug_toolbar',
135 135
136 136 'boards',
137 137 )
@@ -179,9 +179,9 b' POSTING_DELAY = 20 # seconds'
179 179 SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
180 180
181 181 # Debug middlewares
182 MIDDLEWARE_CLASSES += [
183 'debug_toolbar.middleware.DebugToolbarMiddleware',
184 ]
182 #MIDDLEWARE_CLASSES += [
183 # 'debug_toolbar.middleware.DebugToolbarMiddleware',
184 #]
185 185
186 186
187 187 def custom_show_toolbar(request):
General Comments 0
You need to be logged in to leave comments. Login now