diff --git a/lbry/extras/daemon/daemon.py b/lbry/extras/daemon/daemon.py index 6f10da633..8bc5b34ab 100644 --- a/lbry/extras/daemon/daemon.py +++ b/lbry/extras/daemon/daemon.py @@ -4533,6 +4533,7 @@ class Daemon(metaclass=JSONRPCServerType): "channel_name": (str) Name of the channel this was posted under, prepended with a '@', "channel_id": (str) The Channel Claim ID that this comment was posted under, "signature": (str) The signature of the comment, + "signing_ts": (str) The timestamp used to sign the comment, "channel_url": (str) Channel's URI in the ClaimTrie, "parent_id": (str) Comment this is replying to, (None) if this is the root, "timestamp": (int) The time at which comment was entered into the server at, in nanoseconds. @@ -4558,6 +4559,60 @@ class Daemon(metaclass=JSONRPCServerType): response['is_claim_signature_valid'] = comment_client.is_comment_signed_by_channel(response, channel) return response + @requires(WALLET_COMPONENT) + async def jsonrpc_comment_edit(self, comment, comment_id, wallet_id=None): + """ + Edit a comment published as one of your channels. + + Usage: + comment_edit ( | --comment=) + ( | --comment_id=) + [--wallet_id=] + + Options: + --comment= : (str) New comment replacing the old one + --comment_id= : (str) Hash identifying the comment to edit + --wallet_id=