diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-05-05 02:10:45 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-05-05 02:10:45 -0400 |
commit | 9c56383cd0525d0e6e5463e1c8a70d2e9d66fd99 (patch) | |
tree | 9ee2d285f8b0650485c35c827a0f4375881053b6 /askbot/models/post.py | |
parent | 54891e1576a3b8ad96fcfa159c5eaf5ab9cd2446 (diff) | |
download | askbot-9c56383cd0525d0e6e5463e1c8a70d2e9d66fd99.tar.gz askbot-9c56383cd0525d0e6e5463e1c8a70d2e9d66fd99.tar.bz2 askbot-9c56383cd0525d0e6e5463e1c8a70d2e9d66fd99.zip |
hopefully fixed the askbot site mounted at a sub-url
Diffstat (limited to 'askbot/models/post.py')
-rw-r--r-- | askbot/models/post.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/askbot/models/post.py b/askbot/models/post.py index 6b5055de..d48c8b79 100644 --- a/askbot/models/post.py +++ b/askbot/models/post.py @@ -34,6 +34,7 @@ from askbot.conf import settings as askbot_settings from askbot import exceptions from askbot.utils import markup from askbot.utils.html import sanitize_html, strip_tags +from askbot.utils.html import site_url from askbot.models.base import BaseQuerySetManager, DraftContent #todo: maybe merge askbot.utils.markup and forum.utils.html @@ -408,8 +409,7 @@ class Post(models.Model): """a naive tweet representation of post todo: add mentions to relevant people """ - url = self.get_absolute_url(no_slug=True) - url = askbot_settings.APP_URL + url + url = site_url(self.get_absolute_url(no_slug=True)) if self.post_type == 'question': tweet = _('Question: ') elif self.post_type == 'answer': |