Mercurial > public > sg101
diff forums/tools.py @ 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 |
parents | ee87ea74d46b |
children | 9e803323a0d0 |
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): """