allow delete repost, small block fix, lint
This commit is contained in:
parent
3cd2548206
commit
055811957b
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ import ClaimPreview from './view';
|
|||
import fs from 'fs';
|
||||
|
||||
const select = (state, props) => {
|
||||
const claim = makeSelectClaimForUri(props.uri)(state);
|
||||
const claim = makeSelectClaimForUri(props.uri, false)(state);
|
||||
const permanentUri = claim && claim.permanent_url;
|
||||
return {
|
||||
claim,
|
||||
|
|
|
@ -82,7 +82,7 @@ function ClaimMenuList(props: Props) {
|
|||
} = props;
|
||||
const incognito = channelUri && !(channelUri.includes('@'));
|
||||
const signingChannel = claim && (claim.signing_channel || claim);
|
||||
const permanentUrl = signingChannel && signingChannel.permanent_url;
|
||||
const permanentUrl = String(signingChannel && signingChannel.permanent_url);
|
||||
const isChannel = !incognito && signingChannel === claim;
|
||||
const showDelete = claimIsMine || (fileInfo && (fileInfo.written_bytes > 0 || fileInfo.blobs_completed > 0));
|
||||
const subscriptionLabel = isSubscribed ? __('Unfollow') : __('Follow');
|
||||
|
|
Loading…
Reference in a new issue