diff --git a/hive/indexer/posts.py b/hive/indexer/posts.py
index 9dcda3c58516103314ac3f790273f8ea4a6ba953..d745395e5001afecbc37d88c62e3262c41e15f9b 100644
--- a/hive/indexer/posts.py
+++ b/hive/indexer/posts.py
@@ -127,7 +127,7 @@ class Posts:
                 author_id = result['author_id']
                 Notify('error', dst_id=author_id, when=date,
                        post_id=result['id'], payload=error).write()
-            cls._insert_feed_cache(result)
+            cls._insert_feed_cache(result, date)
 
     @classmethod
     def comment_payout_op(cls, ops, date):
@@ -293,14 +293,13 @@ class Posts:
                          allow_replies=cpp['allow_replies'],
                          allow_votes=cpp['allow_votes'],
                          allow_curation_rewards=cpp['allow_curation_rewards'],
-                         author=cpp['author'], permlink=cpp['permlink'])
+                         author=comment_pending_payout['author'], permlink=comment_pending_payout['permlink'])
 
     @classmethod
-    def _insert_feed_cache(cls, result):
+    def _insert_feed_cache(cls, result, date):
         """Insert the new post into feed cache if it's not a comment."""
         if not result['depth']:
-            account_id = Accounts.get_id(result['author'])
-            cls._insert_feed_cache4(result['depth'], result['id'], account_id, result['date'])
+            cls._insert_feed_cache4(result['depth'], result['id'], result['author_id'], date)
 
     @classmethod
     def _insert_feed_cache4(cls, post_depth, post_id, author_id, post_date):