forked from rDrama/rDrama
add "board" to boosts
parent
a3cb1e044a
commit
cae4986c29
|
@ -170,7 +170,7 @@ def vote_post_comment(target_id, new, v, cls, vote_cls):
|
|||
elif SITE == 'rdrama.net' and cls == Post:
|
||||
if target.hole == 'chudrama':
|
||||
mul = 3
|
||||
elif any(i in target.domain for i in ('forum','community','chan','lemmy','mastodon','stackoverflow.com','stackexchange.com')) \
|
||||
elif any(i in target.domain for i in ('forum','community','board','chan','lemmy','mastodon','stackoverflow.com','stackexchange.com')) \
|
||||
or (target.domain in BOOSTED_SITES and not target.url.startswith('/')):
|
||||
mul = 2
|
||||
elif target.hole in BOOSTED_HOLES:
|
||||
|
|
Loading…
Reference in New Issue