Skip to content
Snippets Groups Projects
Commit e208f9d1 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Resolved merge conflicts.

parents 00b2db99 9f66215b
No related branches found
No related tags found
5 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!135Enable postgres monitoring on CI server,!16Dk issue 3 concurrent block query rebase,!15Dk issue 3 concurrent block query
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment