forked from rDrama/rDrama
simplify position code in reporting.py
parent
a23f964ed6
commit
dfb00fafb9
|
@ -227,6 +227,7 @@ def move_post(post, v, reason):
|
||||||
_note=f'{hole_from_str} → {hole_to_str}',
|
_note=f'{hole_from_str} → {hole_to_str}',
|
||||||
)
|
)
|
||||||
g.db.add(ma)
|
g.db.add(ma)
|
||||||
|
position = 'a site admin'
|
||||||
else:
|
else:
|
||||||
ma = HoleAction(
|
ma = HoleAction(
|
||||||
hole=hole_from,
|
hole=hole_from,
|
||||||
|
@ -236,9 +237,7 @@ def move_post(post, v, reason):
|
||||||
_note=f'{hole_from_str} → {hole_to_str}',
|
_note=f'{hole_from_str} → {hole_to_str}',
|
||||||
)
|
)
|
||||||
g.db.add(ma)
|
g.db.add(ma)
|
||||||
|
position = f'a /h/{hole_from} mod'
|
||||||
if v.admin_level >= PERMS['POST_COMMENT_MODERATION']: position = 'a site admin'
|
|
||||||
else: position = f'a /h/{hole_from} mod'
|
|
||||||
|
|
||||||
if hole_from == None:
|
if hole_from == None:
|
||||||
hole_from_in_notif = 'the main feed'
|
hole_from_in_notif = 'the main feed'
|
||||||
|
|
Loading…
Reference in New Issue