Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
400
Merge Requests
64
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
3434db17
Commit
3434db17
authored
53 minutes ago
by
Mark Harding
Browse files
Options
Download
(chore): add ugc to links
parent
90d72243
master
No related merge requests found
Pipeline
#117766439
running with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/app/common/components/rich-embed/rich-embed.html
View file @
3434db17
...
...
@@ -9,7 +9,7 @@
[ngClass]=
"{ 'm-inline-embed': hasInlineContentLoaded() }"
(click)=
"action($event)"
target=
"_blank"
rel=
"noopener no
referrer
"
rel=
"noopener no
follow ugc
"
*ngIf=
"src.thumbnail_src || inlineEmbed"
>
<div
...
...
This diff is collapsed.
src/app/common/pipes/tags.ts
View file @
3434db17
...
...
@@ -20,13 +20,13 @@ export class TagsPipe implements PipeTransform {
url
:
{
rule
:
/
(\b(
https
?
|ftp|file
)
:
\/\/[^\s\]]
+
)
/gim
,
replace
:
m
=>
{
return
`<a href="
${
m
.
match
[
1
]}
" target="_blank" rel="noopener no
referrer
">
${
m
.
match
[
1
]}
</a>`
;
return
`<a href="
${
m
.
match
[
1
]}
" target="_blank" rel="noopener no
follow ugc
">
${
m
.
match
[
1
]}
</a>`
;
},
},
mail
:
{
rule
:
/
[
a-z0-9!#$%&'*+
/
=?^_`{|}~-
]
+
(?:\.[
a-z0-9!#$%&'*+
/
=?^_`{|}~-
]
+
)
*@
(?:[
a-z0-9
](?:[
a-z0-9-
]
*
[
a-z0-9
])?\.)
+
[
a-z0-9
](?:[
a-z0-9-
]
*
[
a-z0-9
])?
/gim
,
replace
:
m
=>
{
return
`<a href="mailto:
${
m
.
match
[
0
]}
" target="_blank" rel="noopener no
referrer
">
${
m
.
match
[
0
]}
</a>`
;
return
`<a href="mailto:
${
m
.
match
[
0
]}
" target="_blank" rel="noopener no
follow ugc
">
${
m
.
match
[
0
]}
</a>`
;
},
},
hash
:
{
...
...
This diff is collapsed.
src/app/modules/channels/social-profiles/social-profiles.html
View file @
3434db17
...
...
@@ -10,7 +10,7 @@
<a
*ngIf=
"profile.key && profile.value"
[href]=
"getSocialProfileURL(profile.value)"
rel=
"noopener no
referrer
"
rel=
"noopener no
follow ugc
"
target=
"_blank"
><i
[ngClass]=
"[ getSocialProfileIconClass(profile) ]"
></i
></a>
...
...
This diff is collapsed.
Please
register
or
sign in
to comment