From 0b1b077feb54026125bbbb2e46d5ebb71438ec7f Mon Sep 17 00:00:00 2001 From: "Chen, Chien-ting" Date: Thu, 24 Nov 2022 00:29:48 +0800 Subject: [PATCH] correct error --- khaikang/views.py | 2 +- templates/user_timeline.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/khaikang/views.py b/khaikang/views.py index 1301a80..fb92a3c 100644 --- a/khaikang/views.py +++ b/khaikang/views.py @@ -237,7 +237,7 @@ def user_timeline(request, username): 'user_shown_name' : viewed_user.shown_name, 'latest_received_time' : latest_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)) diff --git a/templates/user_timeline.html b/templates/user_timeline.html index 9c0d11c..b20f7fe 100644 --- a/templates/user_timeline.html +++ b/templates/user_timeline.html @@ -37,11 +37,11 @@
{{latest_received_time|date:"Y-m-d H:i:s.u"}}+0000
- {% for post in public_timeline_list %} + {% for post in viewed_timeline_list %} -
{{public_post.poster.shown_name}} - at {{public_post.post_time|date:"Y-m-d H:i:s.u"}}+0000
- {{public_post.text|linebreaksbr}}
+
{{post.poster.shown_name}} + at {{post.post_time|date:"Y-m-d H:i:s.u"}}+0000
+ {{post.text|linebreaksbr}}
↩ī¸ - 🔁 - ⭐