adds signing_ts to HTTP body
This commit is contained in:
parent
519dffd3fa
commit
8648b3fbcb
2 changed files with 4 additions and 3 deletions
|
@ -12,7 +12,7 @@ def validate_channel(channel_id: str, channel_name: str):
|
||||||
assert re.fullmatch('[a-z0-9]{40}', channel_id)
|
assert re.fullmatch('[a-z0-9]{40}', channel_id)
|
||||||
|
|
||||||
|
|
||||||
def validate_input(comment: str, claim_id: str, **kwargs):
|
def validate_base_comment(comment: str, claim_id: str, **kwargs):
|
||||||
assert 0 < len(comment) <= 2000
|
assert 0 < len(comment) <= 2000
|
||||||
assert re.fullmatch('[a-z0-9]{40}', claim_id)
|
assert re.fullmatch('[a-z0-9]{40}', claim_id)
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,11 @@ Content-Type: application/json
|
||||||
"id": null,
|
"id": null,
|
||||||
"method": "create_comment",
|
"method": "create_comment",
|
||||||
"params": {
|
"params": {
|
||||||
"comment": "this comment is persistent",
|
"comment": "POP SECRET",
|
||||||
"claim_id": "9cb713f01bf247a0e03170b5ed00d5161340c486",
|
"claim_id": "9cb713f01bf247a0e03170b5ed00d5161340c486",
|
||||||
"channel_name": "@dogeworld",
|
"channel_name": "@dogeworld",
|
||||||
"channel_id": "9cb713f01bf247a0e03170b5ed00d5161340c486"
|
"channel_id": "9cb713f01bf247a0e03170b5ed00d5161340c486",
|
||||||
|
"signing_ts": "1234567"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue