mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Make the "With replies" section private
This commit is contained in:
parent
4877e955d0
commit
8b0a1ea368
2 changed files with 3 additions and 1 deletions
1
app.py
1
app.py
|
@ -728,6 +728,7 @@ def index():
|
|||
|
||||
|
||||
@app.route("/with_replies")
|
||||
@login_required
|
||||
def with_replies():
|
||||
q = {
|
||||
"box": Box.OUTBOX.value,
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
<div class="menu">
|
||||
<ul>
|
||||
<li><a href="/" {% if request.path == "/" %}class="selected"{% endif %}>Notes <small class="badge">{{ notes_count }}</small></a></li>
|
||||
<li><a href="/with_replies" {% if request.path == "/with_replies" %}class="selected"{% endif %}>With replies <small class="badge">{{ with_replies_count }}</small></a></li>
|
||||
{% if session.logged_in %}<li><a href="/with_replies" {% if request.path == "/with_replies" %}class="selected"{% endif %}>With replies <small class="badge">{{ with_replies_count }}</small></a></li>
|
||||
{% end %}
|
||||
<li><a href="/liked" {% if request.path == "/liked" %}class="selected"{% endif %}>Liked <small class="badge">{{ liked_count }}</small></a></li>
|
||||
<li><a href="/followers"{% if request.path == "/followers" %} class="selected" {% endif %}>Followers <small class="badge">{{ followers_count }}</small></a></li>
|
||||
{% if not config.HIDE_FOLLOWING or session.logged_in %}<li><a href="/following"{% if request.path == "/following" %} class="selected" {% endif %}>Following <small class="badge">{{ following_count }}</small></a></li>{% endif %}
|
||||
|
|
Loading…
Reference in a new issue