autopin all of !neofoids and pizzashill

master
Aevann 2024-02-10 17:52:10 +02:00
parent 9b2f38d64f
commit 5308add378
2 changed files with 21 additions and 4 deletions

View File

@ -570,6 +570,7 @@ CURRENCY_TRANSFER_ID = 5
IMMUNE_TO_NEGATIVE_AWARDS = {}
EXEMPT_FROM_1MONTH_EDITING_LIMIT = {}
PINNED_POSTS_IDS = {}
MODMAIL_ID = 2
PROGSTACK_ID = 4
@ -686,6 +687,24 @@ if SITE in {'rdrama.net', 'staging.rdrama.net'}:
IMMUNE_TO_NEGATIVE_AWARDS = {PIZZASHILL_ID, CARP_ID, 23629}
PINNED_POSTS_IDS = {
2424: 1, #pizzashill
864: 1, #RitalinRx
1096: 1, #xa15428
1357: 1, #_______________
1378: 1, #ticktockgone
2008: 1, #transgirltradwife
4999: 1, #justcool393
8491: 1, #TrappySaruh
12451: 1, #rosemulet
13452: 1, #Sammael-Beliol
16012: 1, #realspez
18308: 1, #gee891
22408: 1, #transbitch
24456: 1, #PreyingMantits
3336: 24, #Snally
}
NOTIFIED_USERS = {
'aevan': AEVANN_ID,
'avean': AEVANN_ID,

View File

@ -687,10 +687,8 @@ def submit_post(v, hole=None):
v.post_count += 1
g.db.add(v)
if (SITE == 'rdrama.net'
and v.id in {2008, 3336}
and not (p.hole and p.hole_obj.stealth)) and p.hole != 'slavshit' and not p.ghost:
p.stickied_utc = int(time.time()) + 28800
if v.id in PINNED_POSTS_IDS and not p.ghost and not (p.hole and p.hole_obj.stealth):
p.stickied_utc = time.time() + PINNED_POSTS_IDS[v.id] * 3600
p.stickied = "AutoJanny"
cache.delete_memoized(frontlist)