diff --git a/apps/profile/tasks.py b/apps/profile/tasks.py index 85336c444..c552ff96d 100644 --- a/apps/profile/tasks.py +++ b/apps/profile/tasks.py @@ -2,7 +2,7 @@ import datetime from celery.task import Task from apps.profile.models import Profile, RNewUserQueue from utils import log as logging -from apps.reader.models import UserSubscription +from apps.reader.models import UserSubscription, UserSubscriptionFolders from apps.social.models import MSocialServices, MActivity, MInteraction class EmailNewUser(Task): @@ -62,6 +62,7 @@ class CleanupUser(Task): Profile.count_all_feed_subscribers_for_user(user_id) MInteraction.trim(user_id) MActivity.trim(user_id) + UserSubscriptionFolders.add_missing_feeds_for_user(user_id) # UserSubscription.refresh_stale_feeds(user_id) try: diff --git a/apps/reader/models.py b/apps/reader/models.py index 77ba173f1..13cdeebc2 100644 --- a/apps/reader/models.py +++ b/apps/reader/models.py @@ -1589,6 +1589,16 @@ class UserSubscriptionFolders(models.Model): for i, f in enumerate(usf): print "%s/%s: %s" % (i, total, f) f.add_missing_feeds() + + @classmethod + def add_missing_feeds_for_user(cls, user_id): + user = User.objects.get(pk=user_id) + try: + usf = UserSubscriptionFolders.objects.get(user=user) + except UserSubscriptionFolders.DoesNotExist: + return + + usf.add_missing_feeds() def add_missing_feeds(self): all_feeds = self.flat() diff --git a/templates/mail/email_launch_turntouch.xhtml b/templates/mail/email_launch_turntouch.xhtml index 0b0f1846f..d307f4028 100644 --- a/templates/mail/email_launch_turntouch.xhtml +++ b/templates/mail/email_launch_turntouch.xhtml @@ -26,5 +26,7 @@
Turn Touch is on Kickstarter. Back the project to get your very own. Or—and this is my sincere recommendation—get the complete set, save some money, and give one away to a friend.
+I've been working on Turn Touch for years and I hope it shows.
+ {% endblock %} \ No newline at end of file