diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2022-04-12 16:09:33 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2022-04-12 16:09:33 +0000 |
| commit | 1041a38f140e5a21a170ff68fcbf044991d78d81 (patch) | |
| tree | f32b4f3fac2df3a8203877df54bf9f6e7ccb288e /src/components | |
| parent | c2a4051d72683759344c5de4dcb8d6178198e427 (diff) | |
| parent | 0bb69d7fe026181bb6367ced8a921d0c3a0dc6ba (diff) | |
Merge branch 'fix-hashtags' into 'develop'
fix hashtags by explicitly putting attributes
See merge request pleroma/pleroma-fe!1513
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/rich_content/rich_content.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx index 41e287e4..ca075270 100644 --- a/src/components/rich_content/rich_content.jsx +++ b/src/components/rich_content/rich_content.jsx @@ -28,6 +28,10 @@ import './rich_content.scss' */ export default { name: 'RichContent', + components: { + MentionsLine, + HashtagLink + }, props: { // Original html content html: { @@ -86,7 +90,8 @@ export default { if (!encounteredTextReverse) { lastTags.push(linkData) } - return <HashtagLink { ...linkData }/> + const { url, tag, content } = linkData + return <HashtagLink url={url} tag={tag} content={content}/> } const renderMention = (attrs, children) => { |
