Esempio n. 1
0
 def _insert_feed_cache(cls, post):
     """Insert the new post into feed cache if it's not a comment."""
     if not post['depth']:
         account_id = Accounts.get_id(post['author'])
         FeedCache.insert(post['id'], account_id, post['date'])