However, the Post constructor does not know about no_broadcast and creates a regular Commit:
def __init__(self, post, steemd_instance=None):
self.steemd = steemd_instance or shared_steemd_instance()
self.commit = Commit(steemd_instance=self.steemd)
...
Why does the Post need to create a new Commit object? Could it simply use the commit of the Steem object? Alternatively, the Post constructor could also simply take no_broadcast as an argument. Let me know which solution you prefer and I'll make a pull request.
Hi, the
no_broadcast=True
option does not work with a Post. I figured this out by making an unwanted comment on steemit by accident :-DThis becomes immediately clear if we look into the constructors of
Steem
as well asPost
.In the
Steem
constructor theno_broadcast
option is directly passed to theCommit
:However, the
Post
constructor does not know aboutno_broadcast
and creates a regularCommit
:Why does the
Post
need to create a newCommit
object? Could it simply use thecommit
of theSteem
object? Alternatively, thePost
constructor could also simply takeno_broadcast
as an argument. Let me know which solution you prefer and I'll make a pull request.