diff options
| author | 8chan <admin@8chan.co> | 2014-07-21 16:54:51 +0000 |
|---|---|---|
| committer | Fredrick Brennan <admin@8chan.co> | 2014-07-21 16:55:36 +0000 |
| commit | 48f99deaa56cd7a4af9eeac3b5c981e342816f95 (patch) | |
| tree | 8309b4bdf72f58a4960abc75bc59f5d548533aa0 /templates/mod | |
| parent | 18f158e2d57cb91f0675654975536b446afee64b (diff) | |
Fix post linking bug in ?/recent
Diffstat (limited to 'templates/mod')
| -rw-r--r-- | templates/mod/recent_posts.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/mod/recent_posts.html b/templates/mod/recent_posts.html index 7ed80f21..b9c2c0cc 100644 --- a/templates/mod/recent_posts.html +++ b/templates/mod/recent_posts.html @@ -6,7 +6,12 @@ <p>View <a href="?/recent/25"> 25 </a>|<a href="?/recent/50"> 50 </a>|<a href="?/recent/100"> 100 </a></p>
<a href="javascript:void(0)" id="erase-local-data" style="float:right; clear:both">Erase local data</a></div>
{% for post in posts %}
- <div class="post-wrapper" data-board="{{ post.board }}"><hr/><a class="eita-link" id="eita-{{ post.board }}-{{ post.id or post.thread }}" href="?/{{ post.board }}/res/{{ post.id or post.thread }}.html#{{ post.id or post.thread }}">/{{ post.board }}/{{ post.id }}</a><br>
+ {% if not post.thread %}
+ {% set thread = post.id %}
+ {% else %}
+ {% set thread = post.thread %}
+ {% endif %}
+ <div class="post-wrapper" data-board="{{ post.board }}"><hr/><a class="eita-link" id="eita-{{ post.board }}-{{ thread }}" href="?/{{ post.board }}/res/{{ thread }}.html#{{ post.id }}">/{{ post.board }}/{{ post.id }}</a><br>
{{ post.built }}
</div>
{% endfor %}
|
