Skip to content
Snippets Groups Projects
Unverified Commit 58f26bd4 authored by Holger Nahrstaedt's avatar Holger Nahrstaedt Committed by GitHub
Browse files

Merge pull request #55 from crokkon/discussions

discussions: allow empty replies
parents aa74d03a 5edb73a8
No related branches found
No related tags found
No related merge requests found
......@@ -474,6 +474,7 @@ class Discussions_by_feed(list):
"""
def __init__(self, discussion_query, lazy=False, steem_instance=None):
self.steem = steem_instance or shared_steem_instance()
self.steem.rpc.set_next_node_on_empty_reply(self.steem.rpc.get_use_appbase())
if self.steem.rpc.get_use_appbase():
posts = self.steem.rpc.get_discussions_by_feed(discussion_query, api="tags")['discussions']
else:
......@@ -541,6 +542,7 @@ class Discussions_by_comments(list):
"""
def __init__(self, discussion_query, lazy=False, steem_instance=None):
self.steem = steem_instance or shared_steem_instance()
self.steem.rpc.set_next_node_on_empty_reply(self.steem.rpc.get_use_appbase())
if self.steem.rpc.get_use_appbase():
posts = self.steem.rpc.get_discussions_by_comments(discussion_query, api="tags")['discussions']
else:
......
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