FEATURE: Use the 'ugc' rel attribute

FEATURE: Use the ‘ugc’ rel attribute

diff --git a/lib/onebox/engine/gfycat_onebox.rb b/lib/onebox/engine/gfycat_onebox.rb
index e813d8d..f484f18 100644
--- a/lib/onebox/engine/gfycat_onebox.rb
+++ b/lib/onebox/engine/gfycat_onebox.rb
@@ -19,12 +19,12 @@ module Onebox
           <aside class="onebox gfycat">
             <header class="source">
               <img src="https://gfycat.com/static/favicons/favicon-96x96.png" class="site-icon" width="64" height="64">
-              <a href="#{data[:url]}" target="_blank" rel="nofollow noopener">Gfycat.com</a>
+              <a href="#{data[:url]}" target="_blank" rel="nofollow ugc noopener">Gfycat.com</a>
             </header>
             <article class="onebox-body">
               <h4>
                 #{data[:title]} by
-                <a href="https://gfycat.com/@#{data[:author]}" target="_blank" rel="nofollow noopener">
+                <a href="https://gfycat.com/@#{data[:author]}" target="_blank" rel="nofollow ugc noopener">
                   <span>#{data[:author]}</span>
                 </a>
               </h4>
diff --git a/lib/onebox/engine/reddit_image_onebox.rb b/lib/onebox/engine/reddit_image_onebox.rb
index c33dea6..d7f0497 100644
--- a/lib/onebox/engine/reddit_image_onebox.rb
+++ b/lib/onebox/engine/reddit_image_onebox.rb
@@ -14,10 +14,10 @@ module Onebox
             <aside class="onebox reddit">
               <header class="source">
                 <img src="#{raw[:favicon]}" class="site-icon" width="16" height="16">
-                <a href="#{raw[:url]}" target="_blank" rel="nofollow noopener">#{raw[:site_name]}</a>
+                <a href="#{raw[:url]}" target="_blank" rel="nofollow ugc noopener">#{raw[:site_name]}</a>
               </header>
               <article class="onebox-body">
-                <h3><a href="#{raw[:url]}" target="_blank" rel="nofollow noopener">#{raw[:title]}</a></h3>
+                <h3><a href="#{raw[:url]}" target="_blank" rel="nofollow ugc noopener">#{raw[:title]}</a></h3>
                 <div class="scale-images">
                   <img src="#{raw[:image]}" class="scale-image"/>
                 </div>
diff --git a/lib/onebox/sanitize_config.rb b/lib/onebox/sanitize_config.rb
index 9ff026a..43d8f60 100644
--- a/lib/onebox/sanitize_config.rb
+++ b/lib/onebox/sanitize_config.rb
@@ -35,7 +35,7 @@ class Sanitize
           a_tag = env[:node]
           a_tag['href'] ||= '#'
           if a_tag['href'] =~ %r{^(?:[a-z]+:)?//}
-            a_tag['rel'] = 'nofollow noopener'
+            a_tag['rel'] = 'nofollow ugc noopener'
           else
             a_tag.remove_attribute('target')
           end
diff --git a/spec/lib/onebox/engine/reddit_image_spec.rb b/spec/lib/onebox/engine/reddit_image_spec.rb
index 8f0f60d..4559871 100644
--- a/spec/lib/onebox/engine/reddit_image_spec.rb
+++ b/spec/lib/onebox/engine/reddit_image_spec.rb
@@ -11,7 +11,7 @@ describe Onebox::Engine::RedditImageOnebox do
   end
 
   it "includes title" do
-    expect(html).to include('<a href="https://www.reddit.com/r/colors/comments/b4d5xm/literally_nothing_black_edition/" target="_blank" rel="nofollow noopener">reddit</a>')
+    expect(html).to include('<a href="https://www.reddit.com/r/colors/comments/b4d5xm/literally_nothing_black_edition/" target="_blank" rel="nofollow ugc noopener">reddit</a>')
   end
 
   it "includes image" do

GitHub sha: 93139813