force stealth mode on /h/mnn
parent
1fff400633
commit
8083042617
|
@ -755,7 +755,7 @@ def hole_unpin(v:User, pid):
|
|||
@is_not_permabanned
|
||||
def sub_stealth(v:User, sub):
|
||||
sub = get_sub_by_name(sub)
|
||||
if sub.name in {'braincels','smuggies','ye24'}:
|
||||
if sub.name in {'braincels','smuggies','ye24','mnn'}:
|
||||
abort(403)
|
||||
if not v.mods(sub.name): abort(403)
|
||||
|
||||
|
|
|
@ -173,7 +173,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
|||
or (target.domain in BOOSTED_SITES and not target.url.startswith('/'))
|
||||
or target.sub in BOOSTED_HOLES):
|
||||
mul = 2
|
||||
if target.body_html and target.sub != 'mnn' and target.author.id != 8768:
|
||||
if target.body_html and target.author.id != 8768:
|
||||
x = target.body_html.count('" target="_blank" rel="nofollow noopener">')
|
||||
x += target.body_html.count('" rel="nofollow noopener" target="_blank">')
|
||||
target.realupvotes += min(x*2, 20)
|
||||
|
|
Loading…
Reference in New Issue