Mercurial > public > sg101
changeset 989:2908859c2fe4
Smilies now use relative links.
This is for upcoming switch to SSL. Currently we do not need absolute URLs for
smilies. If this changes we can add it later.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 29 Oct 2015 20:54:34 -0500 |
parents | 65b2bc9cb3cc |
children | 81b96f3c9e59 |
files | smiley/models.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/smiley/models.py Thu Oct 29 20:15:52 2015 -0500 +++ b/smiley/models.py Thu Oct 29 20:54:34 2015 -0500 @@ -81,9 +81,8 @@ def html(self): """Returns a HTML img tag representation of the smiley.""" if self.image: - site = Site.objects.get_current() - return (u'<img src="http://%s%s" alt="%s" title="%s" />' % - (site.domain, self.get_absolute_url(), self.title, self.title)) + return (u'<img src="%s" alt="%s" title="%s" />' % + (self.get_absolute_url(), self.title, self.title)) return u'' html.allow_tags = True