forked from MarseyWorld/MarseyWorld
master
parent
6ba9c6b796
commit
09be0394cd
|
@ -1182,6 +1182,7 @@ def saved_posts(v, username):
|
|||
ids=ids[:25]
|
||||
|
||||
listing = get_posts(ids, v=v)
|
||||
listing.reverse()
|
||||
|
||||
if request.headers.get("Authorization"): return {"data": [x.json for x in listing]}
|
||||
return render_template("userpage.html",
|
||||
|
@ -1206,7 +1207,7 @@ def saved_comments(v, username):
|
|||
ids=ids[:25]
|
||||
|
||||
listing = get_comments(ids, v=v)
|
||||
|
||||
listing.reverse()
|
||||
|
||||
if request.headers.get("Authorization"): return {"data": [x.json for x in listing]}
|
||||
return render_template("userpage_comments.html",
|
||||
|
@ -1230,6 +1231,7 @@ def subscribed_posts(v, username):
|
|||
ids=ids[:25]
|
||||
|
||||
listing = get_posts(ids, v=v)
|
||||
listing.reverse()
|
||||
|
||||
if request.headers.get("Authorization"): return {"data": [x.json for x in listing]}
|
||||
return render_template("userpage.html",
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<a class="nav-link {% if 'saved' in request.path %}active{% endif %}" href="/@{{u.username}}/saved/comments">Saved Comments <span class="count">({{u.saved_comment_count}})</span></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/@{{u.username}}/saved/posts">Subscribed <span class="count">({{u.subscribed_count}})</span></a>
|
||||
<a class="nav-link" href="/@{{u.username}}/subscribed/posts">Subscribed <span class="count">({{u.subscribed_count}})</span></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue