Skip to content

Commit

Permalink
Revert reblogged_by in post.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mirrorrim committed Jun 20, 2018
1 parent 1d2bce0 commit c56901b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions golos/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from golos.instance import shared_steemd_instance
from golos.utils import construct_identifier, resolve_identifier, parse_time, remove_from_dict, calculate_trending, \
calculate_hot
from golosbase.exceptions import PostDoesNotExist, VotingInvalidOnArchivedPost
from golosbase.exceptions import PostDoesNotExist, VotingInvalidOnArchivedPost, RPCError
from golosbase.operations import CommentOptions

log = logging.getLogger(__name__)
Expand Down Expand Up @@ -64,8 +64,12 @@ def refresh(self):

# TODO: Check
# This field is returned from blockchain, but it's empty. Fill it
# Disabled: api_itr != _registered_apis.end(): Could not find API follow
#post['reblogged_by'] = [i for i in self.steemd.get_reblogged_by(post_author, post_permlink) if i != post_author]
try:
reblogged_by = [i for i in self.steemd.get_reblogged_by(post_author, post_permlink) if i != post_author]
except RPCError:
reblogged_by = []

post['reblogged_by'] = reblogged_by

# Parse Times
parse_times = ["active",
Expand Down

0 comments on commit c56901b

Please sign in to comment.