mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Don't auto-accept a link when created or edited by a sponsor.
This commit is contained in:
@@ -485,8 +485,6 @@ class PromoteController(ListingController):
|
||||
# only trips if the title and url are changed by a non-sponsor
|
||||
if changed and not promote.is_unpaid(l):
|
||||
promote.unapprove_promotion(l)
|
||||
if trusted and promote.is_unapproved(l):
|
||||
promote.accept_promotion(l)
|
||||
|
||||
# selftext can be changed at any time
|
||||
if kind == 'self':
|
||||
|
||||
@@ -286,11 +286,7 @@ def new_promotion(title, url, selftext, user, ip):
|
||||
|
||||
l._commit()
|
||||
|
||||
# set the status of the link, populating the query queue
|
||||
if c.user_is_sponsor or user.trusted_sponsor:
|
||||
update_promote_status(l, PROMOTE_STATUS.accepted)
|
||||
else:
|
||||
update_promote_status(l, PROMOTE_STATUS.unpaid)
|
||||
update_promote_status(l, PROMOTE_STATUS.unpaid)
|
||||
|
||||
# the user has posted a promotion, so enable the promote menu unless
|
||||
# they have already opted out
|
||||
|
||||
Reference in New Issue
Block a user