forked from MarseyWorld/MarseyWorld
better-named param
parent
87d08d3acd
commit
1c76af00e8
|
@ -19,7 +19,7 @@ valid_params = [
|
|||
'post',
|
||||
'before',
|
||||
'after',
|
||||
'title',
|
||||
'title_only',
|
||||
'sentto',
|
||||
'hole',
|
||||
'subreddit',
|
||||
|
@ -101,7 +101,7 @@ def searchposts(v):
|
|||
|
||||
if 'q' in criteria:
|
||||
params = [Post.title]
|
||||
if 'title' not in criteria:
|
||||
if 'title_only' not in criteria:
|
||||
params += [Post.body, Post.url, Post.embed]
|
||||
|
||||
words = []
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
</div>
|
||||
<div>
|
||||
<div style="display: inline-block; width: 150px; text-align: center">Post Title Only:</div>
|
||||
<button type="button" data-nonce="{{g.nonce}}" data-onclick="addParam(this, 'bool')" class="searchparam mb-1">title:true</button>
|
||||
<button type="button" data-nonce="{{g.nonce}}" data-onclick="addParam(this, 'bool')" class="searchparam mb-1">title_only:true</button>
|
||||
</div>
|
||||
{% if SITE_NAME != 'WPD' %}
|
||||
<div>
|
||||
|
|
Loading…
Reference in New Issue