forked from MarseyWorld/MarseyWorld
fdsfsd
parent
8699c794d3
commit
3d1ac2771a
|
@ -264,7 +264,7 @@ def api_comment(v):
|
|||
parent_submission=parent_submission,
|
||||
parent_comment_id=c.id,
|
||||
level=level+1,
|
||||
body=filter_title(option)
|
||||
body_html=filter_title(option)
|
||||
)
|
||||
|
||||
g.db.add(c_option)
|
||||
|
|
|
@ -690,7 +690,7 @@ def submit_post(v):
|
|||
c = Comment(author_id=AUTOPOLLER_ACCOUNT,
|
||||
parent_submission=new_post.id,
|
||||
level=1,
|
||||
body=filter_title(option),
|
||||
body_html=filter_title(option),
|
||||
)
|
||||
|
||||
g.db.add(c)
|
||||
|
|
|
@ -261,7 +261,7 @@
|
|||
{% for c in c.options %}
|
||||
<div class="custom-control">
|
||||
<input type="checkbox" class="custom-control-input" id="{{c.id}}" name="option" {% if c.poll_voted(v) %}checked{% endif %} onchange="poll_vote('{{c.id}}')">
|
||||
<label class="custom-control-label" for="{{c.id}}">{{c.body}} - <a href="/votes?link=t3_{{c.id}}"><span id="poll-{{c.id}}">{{c.upvotes}}</span> votes</a></label>
|
||||
<label class="custom-control-label" for="{{c.id}}">{{c.body_html | safe}} - <a href="/votes?link=t3_{{c.id}}"><span id="poll-{{c.id}}">{{c.upvotes}}</span> votes</a></label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<pre></pre>
|
||||
|
|
|
@ -378,7 +378,7 @@
|
|||
{% for c in p.options %}
|
||||
<div class="custom-control">
|
||||
<input type="checkbox" class="custom-control-input" id="{{c.id}}" name="option" {% if c.poll_voted(v) %}checked{% endif %} onchange="poll_vote('{{c.id}}')">
|
||||
<label class="custom-control-label" for="{{c.id}}">{{c.body}} - <a href="/votes?link=t3_{{c.id}}"><span id="poll-{{c.id}}">{{c.upvotes}}</span> votes</a></label>
|
||||
<label class="custom-control-label" for="{{c.id}}">{{c.body_html | safe}} - <a href="/votes?link=t3_{{c.id}}"><span id="poll-{{c.id}}">{{c.upvotes}}</span> votes</a></label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue