FIX: ignore canonical link for medium.com oneboxes (#14278)

https://meta.discourse.org/t/bug-in-onebox-link-being-rendered-as-a-gist-when-it-isnt/202463
This commit is contained in:
Arpit Jalan 2021-09-08 20:19:57 +05:30 committed by GitHub
parent 01341f33e3
commit 11a07b37e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module Onebox
class DownloadTooLarge < StandardError; end
IGNORE_CANONICAL_DOMAINS ||= ['www.instagram.com', 'youtube.com']
IGNORE_CANONICAL_DOMAINS ||= ['www.instagram.com', 'medium.com', 'youtube.com']
def self.symbolize_keys(hash)
return {} if hash.nil?