mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-20 20:38:05 -05:00
Fix validator bug for promotions in disabled ad subreddits
This commit is contained in:
@@ -1233,7 +1233,7 @@ class VSubmitSR(Validator):
|
||||
self.set_error(errors.SUBREDDIT_NOTALLOWED)
|
||||
return
|
||||
|
||||
if sr.hide_ads:
|
||||
if sr.hide_ads and self.promotion:
|
||||
self.set_error(errors.SUBREDDIT_DISABLED_ADS)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user