Fixes stuff up

This commit is contained in:
Oleg Silkin 2019-05-29 15:57:17 -04:00 committed by Lex Berezhny
parent 17164601a1
commit 552b94bc65
2 changed files with 25 additions and 15 deletions

View file

@ -534,7 +534,7 @@ class Config(CLIConfig):
('lbrynet4.lbry.com', 4444) # ASIA ('lbrynet4.lbry.com', 4444) # ASIA
]) ])
comment_server = String("Updated Comment Server version.", "comments.lbry.com/api") comment_server = String("Updated Comment Server version.", "https://comments.lbry.com/api")
# blockchain # blockchain
blockchain_name = String("Blockchain name - lbrycrd_main, lbrycrd_regtest, or lbrycrd_testnet", 'lbrycrd_main') blockchain_name = String("Blockchain name - lbrycrd_main, lbrycrd_regtest, or lbrycrd_testnet", 'lbrycrd_main')

View file

@ -3339,6 +3339,7 @@ class Daemon(metaclass=JSONRPCServerType):
[--parent_id=<parent_id>] [--include_replies] [--parent_id=<parent_id>] [--include_replies]
Options: Options:
--claim_id=<claim_id> : (str) The claim on which the comment will be made on
--include_replies : (bool) Flag to indicate whether or not you want the --include_replies : (bool) Flag to indicate whether or not you want the
replies to be included with the response or not replies to be included with the response or not
--parent_id=<parent_id> : (int) --parent_id=<parent_id> : (int)
@ -3349,20 +3350,27 @@ class Daemon(metaclass=JSONRPCServerType):
retrieve in one request retrieve in one request
Returns: Returns:
(list) Containing comments stored as dictionary objects: (dict) Containing the list, and information about the paginated content:
[ {
{ "page": "Page number of the current items.",
"comment": (str) The actual string as inputted by the user, "page_size": "Number of items to show on a page.",
"comment_id": (str) The Comment's unique identifier, "total_pages": "Total number of pages.",
"channel_name": (str) Name of the channel this was posted under, prepended with a '@', "total_items": "Total number of items.",
"channel_id": (str) The Channel Claim ID that this comeent was posted under, "items": "A List of dict objects representing comments."
"signature": (str) The signature of the comment, [
"channel_uri": (str) Channel's URI in the ClaimTrie, {
"parent_id": (str) Comment this is replying to, (None) if this is the root, "comment": (str) The actual string as inputted by the user,
"timestamp": (int) The time at which comment was entered into the server at, in nanoseconds. "comment_id": (str) The Comment's unique identifier,
}, "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,
"channel_uri": (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.
},
...
]
}
""" """
return await jsonrpc_post( return await jsonrpc_post(
self.conf.comment_server, self.conf.comment_server,
@ -3387,6 +3395,8 @@ class Daemon(metaclass=JSONRPCServerType):
[--parent_id=<parent_id>] [--parent_id=<parent_id>]
Options: Options:
--comment=<comment> : (str) Comment to be made, should be at most 2000 characters.
--claim_id=<claim_id> : (str) The ID of the claim on which the comment should be made on
--parent_id=<parent_id> : (str) The ID of a comment to make a response to --parent_id=<parent_id> : (str) The ID of a comment to make a response to
--channel_id=<channel_id> : (str) The ID of the channel you want to post under --channel_id=<channel_id> : (str) The ID of the channel you want to post under
--channel_name=<channel_name> : (str) The channel you want to post as, prepend with a '@' --channel_name=<channel_name> : (str) The channel you want to post as, prepend with a '@'