correct error

This commit is contained in:
Tan, Kian-ting 2022-11-24 00:29:48 +08:00
parent 8746aa748b
commit 0b1b077feb
2 changed files with 5 additions and 5 deletions

View file

@ -237,7 +237,7 @@ def user_timeline(request, username):
'user_shown_name' : viewed_user.shown_name, 'user_shown_name' : viewed_user.shown_name,
'latest_received_time' : latest_received_time, 'latest_received_time' : latest_received_time,
'oldest_received_time' : oldest_received_time, 'oldest_received_time' : oldest_received_time,
'public_timeline_list': viewed_timeline_list, 'viewed_timeline_list': viewed_timeline_list,
} }
return HttpResponse(template.render(context, request)) return HttpResponse(template.render(context, request))

View file

@ -37,11 +37,11 @@
<div id="new_post_notifier" value=""></div> <div id="new_post_notifier" value=""></div>
<div id="latest_time" style="display: block;">{{latest_received_time|date:"Y-m-d H:i:s.u"}}+0000</div> <div id="latest_time" style="display: block;">{{latest_received_time|date:"Y-m-d H:i:s.u"}}+0000</div>
{% for post in public_timeline_list %} {% for post in viewed_timeline_list %}
<div id="post-{{post.id}}" class="post"><a href="/user/{{post.poster}}">{{public_post.poster.shown_name}}</a> <div id="post-{{post.id}}" class="post"><a href="/user/{{post.poster}}">{{post.poster.shown_name}}</a>
at <a href="/post/{{post.id}}" class="post-time">{{public_post.post_time|date:"Y-m-d H:i:s.u"}}+0000</a><br/> at <a href="/post/{{post.id}}" class="post-time">{{post.post_time|date:"Y-m-d H:i:s.u"}}+0000</a><br/>
{{public_post.text|linebreaksbr}}<br/> {{post.text|linebreaksbr}}<br/>
<span id="reply-{{post.id}}" value="{{post.id}}" class="reply">↩️</span> <span id="reply-{{post.id}}" value="{{post.id}}" class="reply">↩️</span>
- <span id="repost-{{post.id}}" value="{{post.id}}" class="repost">🔁</span> - <span id="repost-{{post.id}}" value="{{post.id}}" class="repost">🔁</span>
- <span id="fav-{{post.id}}" value="{{post.id}}" class="fav"></span> - <span id="fav-{{post.id}}" value="{{post.id}}" class="fav"></span>