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;
|
||||||
|
@ -258,8 +259,8 @@ export const makeSelectMyPurchasesForPage = (query: ?string, page: number = 1) =
|
||||||
const end = Number(page) * Number(PAGE_SIZE);
|
const end = Number(page) * Number(PAGE_SIZE);
|
||||||
return matchingFileInfos && matchingFileInfos.length
|
return matchingFileInfos && matchingFileInfos.length
|
||||||
? matchingFileInfos
|
? matchingFileInfos
|
||||||
.slice(start, end)
|
.slice(start, end)
|
||||||
.map(fileInfo => fileInfo.canonical_url || fileInfo.permanent_url)
|
.map(fileInfo => fileInfo.canonical_url || fileInfo.permanent_url)
|
||||||
: [];
|
: [];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -365,8 +366,8 @@ export const makeSelectDateForUri = (uri: string) =>
|
||||||
(claim.value.release_time
|
(claim.value.release_time
|
||||||
? claim.value.release_time * 1000
|
? claim.value.release_time * 1000
|
||||||
: claim.meta && claim.meta.creation_timestamp
|
: claim.meta && claim.meta.creation_timestamp
|
||||||
? claim.meta.creation_timestamp * 1000
|
? claim.meta.creation_timestamp * 1000
|
||||||
: null);
|
: null);
|
||||||
if (!timestamp) {
|
if (!timestamp) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue