Deleted users blurblog title

This commit is contained in:
Samuel Clay 2021-04-12 16:29:47 -04:00
parent e626428967
commit 05dd966200

View file

@ -596,7 +596,8 @@ def feed_unread_count(request):
else:
feed_title = feed_ids[0]
elif len(social_feed_ids) == 1:
feed_title = MSocialProfile.objects.get(user_id=social_feed_ids[0].replace('social:', '')).username
social_profile = MSocialProfile.objects.get(user_id=social_feed_ids[0].replace('social:', ''))
feed_title = social_profile.user.username if social_profile.user else "[deleted]"
else:
feed_title = "%s feeds" % (len(feeds) + len(social_feeds))
logging.user(request, "~FBUpdating unread count on: %s" % feed_title)