mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Fixed check of duplicate urls in promoted edit page
This commit is contained in:
@@ -1347,7 +1347,7 @@ class ApiController(RedditController):
|
||||
res._focus('title')
|
||||
elif res._chk_errors((errors.NO_URL,errors.BAD_URL)):
|
||||
res._focus('url')
|
||||
elif res._chk_error(errors.ALREADY_SUB) and (not l or url != l.url):
|
||||
elif (not l or url != l.url) and res._chk_error(errors.ALREADY_SUB):
|
||||
#if url == l.url, we're just editting something else
|
||||
res._focus('url')
|
||||
elif res._chk_error(errors.SUBREDDIT_NOEXIST):
|
||||
|
||||
Reference in New Issue
Block a user