Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
pleroma-fe
Commits
d175e869
Commit
d175e869
authored
2 years ago
by
HJ
Browse files
Options
Downloads
Patches
Plain Diff
fix hashtags by explicitly putting attributes
parent
c2a4051d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1711
Update stable - 2.5.0 release
,
!1513
fix hashtags by explicitly putting attributes
Pipeline
#39702
failed
2 years ago
Stage: lint
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/rich_content/rich_content.jsx
+6
-1
6 additions, 1 deletion
src/components/rich_content/rich_content.jsx
with
6 additions
and
1 deletion
src/components/rich_content/rich_content.jsx
+
6
−
1
View file @
d175e869
...
...
@@ -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
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment