Return status 403 in response to signature request if post is not saved to IPFS
This commit is contained in:
parent
5d2c3e85eb
commit
5730ae0072
2 changed files with 2 additions and 4 deletions
|
@ -398,13 +398,11 @@ paths:
|
|||
type: string
|
||||
example: '6a5cb313907cd3...'
|
||||
403:
|
||||
description: Post does not belong to user or is not public or user's wallet address is not known
|
||||
description: Post does not belong to user, is not public or not saved to IPFS, or user's wallet address is not known
|
||||
404:
|
||||
description: Post not found
|
||||
418:
|
||||
description: Ethereum integration is not enabled
|
||||
422:
|
||||
description: Post is not saved to IPFS
|
||||
/api/v1/statuses/{status_id}/token_minted:
|
||||
post:
|
||||
summary: Register transaction that mints a token
|
||||
|
|
|
@ -443,7 +443,7 @@ async fn get_signature(
|
|||
};
|
||||
let ipfs_cid = post.ipfs_cid
|
||||
// Post metadata is not immutable
|
||||
.ok_or(HttpError::OperationError("post is not immutable"))?;
|
||||
.ok_or(HttpError::PermissionError)?;
|
||||
let token_uri = get_ipfs_url(&ipfs_cid);
|
||||
let signature = create_mint_signature(
|
||||
contract_config,
|
||||
|
|
Loading…
Reference in a new issue