Use permalink offered by Reddit (fixes #613). (#614)

This commit is contained in:
Daniel Valentine 2022-11-03 22:08:36 -06:00 committed by GitHub
parent ae3ea2da7c
commit 8348e20724
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,8 +114,8 @@
<div class="post_score" title="{{ post.score.1 }}">{{ post.score.0 }}<span class="label"> Upvotes</span></div> <div class="post_score" title="{{ post.score.1 }}">{{ post.score.0 }}<span class="label"> Upvotes</span></div>
<div class="post_footer"> <div class="post_footer">
<ul id="post_links"> <ul id="post_links">
<li><a href="/{{ post.id }}">permalink</a></li> <li><a href="{{ post.permalink }}">permalink</a></li>
<li><a href="https://reddit.com/{{ post.id }}" rel="nofollow">reddit</a></li> <li><a href="https://reddit.com{{ post.permalink }}" rel="nofollow">reddit</a></li>
</ul> </ul>
<p>{{ post.upvote_ratio }}% Upvoted</p> <p>{{ post.upvote_ratio }}% Upvoted</p>
</div> </div>
@ -138,7 +138,7 @@
{% for c in comments -%} {% for c in comments -%}
<div class="thread"> <div class="thread">
{% if single_thread %} {% if single_thread %}
<p class="thread_nav"><a href="/{{ post.id }}">View all comments</a></p> <p class="thread_nav"><a href="{{ post.permalink }}">View all comments</a></p>
{% if c.parent_kind == "t1" %} {% if c.parent_kind == "t1" %}
<p class="thread_nav"><a href="?context=9999">Show parent comments</a></p> <p class="thread_nav"><a href="?context=9999">Show parent comments</a></p>
{% endif %} {% endif %}