Mercurial > public > sg101
changeset 781:b6d6c9e37fae
Issue #68, calendar generated forum threads should be indexed.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 04 May 2014 15:37:56 -0500 (2014-05-04) |
parents | feafa1c3d356 |
children | 9133b4626a4b |
files | forums/tools.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/forums/tools.py Sun May 04 15:18:26 2014 -0500 +++ b/forums/tools.py Sun May 04 15:37:56 2014 -0500 @@ -4,6 +4,7 @@ import logging from forums.models import Post, Topic, Forum, ForumLastVisit, TopicLastVisit +from forums.signals import notify_new_topic, notify_new_post def delete_user_posts(user): @@ -107,6 +108,9 @@ user_ip=ip) post.save() + notify_new_topic(topic) + notify_new_post(post) + def auto_favorite(post): """