mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 14:27:58 -05:00
Fix bug in deletion of subreddit header image.
Due to spriting etc. it doesn't make sense to replace this image anyway, so just delete this line that was causing issues because DefaultSR.header is a property object, not an actual value!
This commit is contained in:
@@ -1258,8 +1258,6 @@ class ApiController(RedditController):
|
||||
c.site.sponsorship_size = None
|
||||
c.site._commit()
|
||||
elif c.site.header:
|
||||
# reset the header image on the page
|
||||
jquery('#header-img').attr("src", DefaultSR.header)
|
||||
c.site.header = None
|
||||
c.site.header_size = None
|
||||
c.site._commit()
|
||||
|
||||
Reference in New Issue
Block a user