FEATURE: Use the 'ugc' rel attribute alongside 'nofollow'
This commit is contained in:
parent
392f6cdf33
commit
9845963105
2
Gemfile
2
Gemfile
|
@ -50,7 +50,7 @@ gem 'redis-namespace'
|
|||
|
||||
gem 'active_model_serializers', '~> 0.8.3'
|
||||
|
||||
gem 'onebox', '1.9.17'
|
||||
gem 'onebox', '1.9.18'
|
||||
|
||||
gem 'http_accept_language', '~>2.0.5', require: false
|
||||
|
||||
|
|
|
@ -245,7 +245,7 @@ GEM
|
|||
omniauth-twitter (1.4.0)
|
||||
omniauth-oauth (~> 1.1)
|
||||
rack
|
||||
onebox (1.9.17)
|
||||
onebox (1.9.18)
|
||||
htmlentities (~> 4.3)
|
||||
moneta (~> 1.0)
|
||||
multi_json (~> 1.11)
|
||||
|
@ -501,7 +501,7 @@ DEPENDENCIES
|
|||
omniauth-oauth2
|
||||
omniauth-openid
|
||||
omniauth-twitter
|
||||
onebox (= 1.9.17)
|
||||
onebox (= 1.9.18)
|
||||
openid-redis-store
|
||||
parallel_tests
|
||||
pg
|
||||
|
|
|
@ -21,7 +21,7 @@ export function extractLinkMeta(topic) {
|
|||
target: target,
|
||||
href,
|
||||
domain: topic.get("featured_link_root_domain"),
|
||||
rel: "nofollow"
|
||||
rel: "nofollow ugc"
|
||||
};
|
||||
|
||||
if (_decorators.length) {
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<a class="lightbox"
|
||||
href={{imageCDNURL}}
|
||||
title={{imageFilename}}
|
||||
rel="nofollow noopener">
|
||||
rel="nofollow ugc noopener">
|
||||
|
||||
<div class="meta">
|
||||
<span class="informations">
|
||||
|
|
|
@ -151,7 +151,7 @@
|
|||
<span class='website-name'>
|
||||
{{d-icon "globe"}}
|
||||
{{#if linkWebsite}}
|
||||
<a href="{{user.website}}" rel={{unless removeNoFollow 'nofollow noopener'}}
|
||||
<a href="{{user.website}}" rel={{unless removeNoFollow 'nofollow ugc noopener'}}
|
||||
target="_blank">{{user.website_name}}</a>
|
||||
{{else}}
|
||||
<span title={{user.website}}>{{user.website_name}}</span>
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
<div class="user-profile-website">
|
||||
{{d-icon "globe"}}
|
||||
{{#if linkWebsite}}
|
||||
<a href={{model.website}} rel={{unless removeNoFollow 'nofollow noopener'}} target="_blank">{{model.website_name}}</a>
|
||||
<a href={{model.website}} rel={{unless removeNoFollow 'nofollow ugc noopener'}} target="_blank">{{model.website_name}}</a>
|
||||
{{else}}
|
||||
<span title={{model.website}}>{{model.website_name}}</span>
|
||||
{{/if}}
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
<a class='domain'
|
||||
href='{{unbound link.url}}'
|
||||
title='{{unbound link.title}}'
|
||||
rel='{{unless user.removeNoFollow 'nofollow noopener'}}'
|
||||
rel='{{unless user.removeNoFollow 'nofollow ugc noopener'}}'
|
||||
target='_blank'>
|
||||
{{shorten-url link.url}}
|
||||
</a>
|
||||
|
|
|
@ -247,7 +247,7 @@ createWidget("topic-map-link", {
|
|||
"data-user-id": attrs.user_id,
|
||||
"data-ignore-post-id": "true",
|
||||
title: attrs.url,
|
||||
rel: "nofollow noopener"
|
||||
rel: "nofollow ugc noopener"
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
@ -126,6 +126,7 @@ const DEFAULT_LIST = [
|
|||
"a[data-bbcode]",
|
||||
"a[name]",
|
||||
"a[rel=nofollow]",
|
||||
"a[rel=ugc]",
|
||||
"a[target=_blank]",
|
||||
"a[title]",
|
||||
"abbr[title]",
|
||||
|
|
Loading…
Reference in New Issue