forked from rDrama/rDrama
pin posts by pizza/impassionata/TGTW automatically for 1 hour
parent
d506788d94
commit
4656fa0b8d
|
@ -451,7 +451,7 @@ def execute_lawlz_actions(v:User, p:Submission):
|
||||||
if SITE_NAME != 'rDrama': return
|
if SITE_NAME != 'rDrama': return
|
||||||
if not FEATURES['PINS']: return
|
if not FEATURES['PINS']: return
|
||||||
p.stickied_utc = int(time.time()) + 86400
|
p.stickied_utc = int(time.time()) + 86400
|
||||||
p.stickied = v.username
|
p.stickied = AUTOJANNY_ID
|
||||||
p.distinguish_level = 6
|
p.distinguish_level = 6
|
||||||
p.flair = filter_emojis_only(":ben10: Required Reading")
|
p.flair = filter_emojis_only(":ben10: Required Reading")
|
||||||
pin_time = 'for 1 day'
|
pin_time = 'for 1 day'
|
||||||
|
|
|
@ -924,6 +924,10 @@ def submit_post(v:User, sub=None):
|
||||||
|
|
||||||
execute_lawlz_actions(v, post)
|
execute_lawlz_actions(v, post)
|
||||||
|
|
||||||
|
if SITE == 'rdrama.net' and v.id in (IMPASSIONATA_ID, PIZZASHILL_ID, 2008):
|
||||||
|
p.stickied_utc = int(time.time()) + 3600
|
||||||
|
p.stickied = AUTOJANNY_ID
|
||||||
|
|
||||||
cache.delete_memoized(frontlist)
|
cache.delete_memoized(frontlist)
|
||||||
cache.delete_memoized(userpagelisting)
|
cache.delete_memoized(userpagelisting)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue