mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-23 22:08:11 -05:00
Set domain_override for new promos.
This commit is contained in:
@@ -596,6 +596,8 @@ class PromoteApiController(ApiController):
|
||||
l = promote.new_promotion(title, url if kind == 'link' else 'self',
|
||||
selftext if kind == 'self' else '',
|
||||
user, request.ip)
|
||||
l.domain_override = domain_override or None
|
||||
l._commit()
|
||||
|
||||
elif promote.is_promo(l):
|
||||
# changing link type is not allowed
|
||||
|
||||
Reference in New Issue
Block a user