diff --git a/files/routes/search.py b/files/routes/search.py index 98eb4a326..f0f99323c 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -111,6 +111,7 @@ def searchposts(v): posts = posts.filter(*words) if 'nsfw' in criteria: posts = posts.filter(Post.nsfw==True) + if 'effortpost' in criteria: posts = posts.filter(Post.effortpost==True) if 'domain' in criteria: domain = criteria['domain'] diff --git a/files/templates/search.html b/files/templates/search.html index 1942a93ce..b274d71cf 100644 --- a/files/templates/search.html +++ b/files/templates/search.html @@ -90,6 +90,12 @@ {% endif %} + {% if request.path.startswith('/search/posts') %} +
+
Effortpost:
+ +
+ {% endif %} {% endif %}