support repost amount
This commit is contained in:
parent
8adf3dada3
commit
a37f195d73
4 changed files with 11 additions and 5 deletions
3
dist/bundle.es.js
vendored
3
dist/bundle.es.js
vendored
|
@ -2224,7 +2224,8 @@ const makeSelectClaimForUri = (uri, returnRepost = true) => reselect.createSelec
|
||||||
|
|
||||||
return _extends$3({}, repostedClaim, {
|
return _extends$3({}, repostedClaim, {
|
||||||
repost_url: uri,
|
repost_url: uri,
|
||||||
repost_channel_url: channelUrl
|
repost_channel_url: channelUrl,
|
||||||
|
repost_amount: claim && claim.meta && claim.meta.effective_amount
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return claim;
|
return claim;
|
||||||
|
|
2
dist/flow-typed/Claim.js
vendored
2
dist/flow-typed/Claim.js
vendored
|
@ -33,6 +33,8 @@ declare type GenericClaim = {
|
||||||
value_type: 'stream' | 'channel',
|
value_type: 'stream' | 'channel',
|
||||||
signing_channel?: ChannelClaim,
|
signing_channel?: ChannelClaim,
|
||||||
repost_channel_url?: string,
|
repost_channel_url?: string,
|
||||||
|
repost_url?: string,
|
||||||
|
repost_bid_amount?: string,
|
||||||
purchase_receipt?: PurchaseReceipt,
|
purchase_receipt?: PurchaseReceipt,
|
||||||
meta: {
|
meta: {
|
||||||
activation_height: number,
|
activation_height: number,
|
||||||
|
|
2
flow-typed/Claim.js
vendored
2
flow-typed/Claim.js
vendored
|
@ -33,6 +33,8 @@ declare type GenericClaim = {
|
||||||
value_type: 'stream' | 'channel',
|
value_type: 'stream' | 'channel',
|
||||||
signing_channel?: ChannelClaim,
|
signing_channel?: ChannelClaim,
|
||||||
repost_channel_url?: string,
|
repost_channel_url?: string,
|
||||||
|
repost_url?: string,
|
||||||
|
repost_bid_amount?: string,
|
||||||
purchase_receipt?: PurchaseReceipt,
|
purchase_receipt?: PurchaseReceipt,
|
||||||
meta: {
|
meta: {
|
||||||
activation_height: number,
|
activation_height: number,
|
||||||
|
|
|
@ -127,6 +127,7 @@ export const makeSelectClaimForUri = (uri: string, returnRepost: boolean = true)
|
||||||
...repostedClaim,
|
...repostedClaim,
|
||||||
repost_url: uri,
|
repost_url: uri,
|
||||||
repost_channel_url: channelUrl,
|
repost_channel_url: channelUrl,
|
||||||
|
repost_amount: claim && claim.meta && claim.meta.effective_amount,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return claim;
|
return claim;
|
||||||
|
|
Loading…
Add table
Reference in a new issue