allow ppl with y'all-seeing-eye to peruse the tab
parent
bd1f6d0311
commit
72a8674d20
|
@ -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%'),
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue