Add `class="externalURL" rel="nofollow ugc"` to Twitter embed fallback
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 29 May 2020 14:19:00 +0000 (16:19 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 29 May 2020 14:19:00 +0000 (16:19 +0200)
see #3309
see #3339

com.woltlab.wcf/mediaProvider.xml

index 71fa49551da3919991eba76ac91cba628b883a35..53e5404597936cc90868ef49a479c60ccc409199 100644 (file)
@@ -78,7 +78,7 @@ https?://www.twitch.tv/[a-zA-Z0-9]+/v/(?<ID>[0-9]+)]]></regex>
                <provider name="twitter-tweet">
                        <title>Twitter Tweet</title>
                        <regex><![CDATA[https://twitter.com/(?<USERNAME>[0-9a-zA-Z_]+)/status/(?<ID>[0-9]+)]]></regex>
-                       <html><![CDATA[<div data-wsc-twitter-tweet="{$ID}"><a href="https://twitter.com/{$USERNAME}/status/{$ID}/">https://twitter.com/{$USERNAME}/status/{$ID}/</a></div>
+                       <html><![CDATA[<div data-wsc-twitter-tweet="{$ID}"><a href="https://twitter.com/{$USERNAME}/status/{$ID}/" class="externalURL" rel="nofollow ugc">https://twitter.com/{$USERNAME}/status/{$ID}/</a></div>
 <script>require(["WoltLabSuite/Core/Ui/Message/TwitterEmbed"],function(t){t.embedAll()});</script>]]></html>
                </provider>
        </import>