def readd_mention_notification(mention):
 inbox_owner = mention._thing1
 thing = mention._thing2
 with query_cache.CachedQueryMutator() as m:
  m.insert(queries.get_inbox_comment_mentions(inbox_owner), [mention])
  unread = getattr(mention, 'unread_preremoval', True)
  queries.set_unread(thing, inbox_owner, unread=unread, mutator=m)

def readd_mention_notification ( mention ) : inbox_owner = mention . _thing1 thing = mention . _thing2 with query_cache . CachedQueryMutator ( ) as m : m . insert ( queries . get_inbox_comment_mentions ( inbox_owner ) , [ mention ] ) unread = getattr ( mention , 'unread_preremoval' , True ) queries . set_unread ( thing , inbox_owner , unread = unread , mutator = m )
reinsert into inbox after a comment has been unspammed .