Comments: inline image not working for level4/5 channels
## Ticket 852 Markdown inline images in comments don't work for any channel level ## Change The prior commit simplified the props from individual comment fields to just 1 `Comment` object, but there was a typo in the parameter where it should be `channel_url` instead of `author_uri`.
This commit is contained in:
parent
c34840a4d4
commit
0947393912
1 changed files with 4 additions and 4 deletions
|
@ -22,7 +22,7 @@ import Comment from './view';
|
||||||
|
|
||||||
const select = (state, props) => {
|
const select = (state, props) => {
|
||||||
const { comment, uri } = props;
|
const { comment, uri } = props;
|
||||||
const { comment_id, author_uri } = comment || {};
|
const { comment_id, channel_url } = comment || {};
|
||||||
|
|
||||||
const activeChannelClaim = selectActiveChannelClaim(state);
|
const activeChannelClaim = selectActiveChannelClaim(state);
|
||||||
const activeChannelId = activeChannelClaim && activeChannelClaim.claim_id;
|
const activeChannelId = activeChannelClaim && activeChannelClaim.claim_id;
|
||||||
|
@ -31,14 +31,14 @@ const select = (state, props) => {
|
||||||
return {
|
return {
|
||||||
myChannelIds: selectMyClaimIdsRaw(state),
|
myChannelIds: selectMyClaimIdsRaw(state),
|
||||||
claim: makeSelectClaimForUri(uri)(state),
|
claim: makeSelectClaimForUri(uri)(state),
|
||||||
thumbnail: author_uri && selectThumbnailForUri(state, author_uri),
|
thumbnail: channel_url && selectThumbnailForUri(state, channel_url),
|
||||||
channelIsBlocked: author_uri && makeSelectChannelIsMuted(author_uri)(state),
|
channelIsBlocked: channel_url && makeSelectChannelIsMuted(channel_url)(state),
|
||||||
commentingEnabled: IS_WEB ? Boolean(selectUserVerifiedEmail(state)) : true,
|
commentingEnabled: IS_WEB ? Boolean(selectUserVerifiedEmail(state)) : true,
|
||||||
othersReacts: selectOthersReactsForComment(state, reactionKey),
|
othersReacts: selectOthersReactsForComment(state, reactionKey),
|
||||||
activeChannelClaim,
|
activeChannelClaim,
|
||||||
hasChannels: selectHasChannels(state),
|
hasChannels: selectHasChannels(state),
|
||||||
playingUri: selectPlayingUri(state),
|
playingUri: selectPlayingUri(state),
|
||||||
stakedLevel: selectStakedLevelForChannelUri(state, author_uri),
|
stakedLevel: selectStakedLevelForChannelUri(state, channel_url),
|
||||||
linkedCommentAncestors: selectLinkedCommentAncestors(state),
|
linkedCommentAncestors: selectLinkedCommentAncestors(state),
|
||||||
totalReplyPages: makeSelectTotalReplyPagesForParentId(comment_id)(state),
|
totalReplyPages: makeSelectTotalReplyPagesForParentId(comment_id)(state),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue