allow ppl with y'all-seeing-eye to peruse the tab

pull/225/head
Aevann 2024-02-29 01:56:52 +02:00
parent bd1f6d0311
commit 72a8674d20
2 changed files with 3 additions and 2 deletions

View File

@ -275,7 +275,8 @@ def notifications_modactions(v):
def notifications_offsite(v):
page = get_page()
if not v.can_view_offsite_mentions: abort(403)
if v.offsite_mentions == None:
abort(403)
listing = g.db.query(Comment).filter(
Comment.body_html.like('<p>New site mention%'),

View File

@ -38,7 +38,7 @@
</a>
</li>
{% endif %}
{% if v.can_view_offsite_mentions %}
{% if v.offsite_mentions != None %}
<li class="nav-item">
<a class="nav-link py-3{% if request.path == '/notifications/site_mentions' %} active{% endif %}" href="/notifications/site_mentions">
Site Mentions {% if v.offsite_notifications_count %}<span class="font-weight-bold" style="color:#805ad5">({{v.offsite_notifications_count}})</span>{% endif %}