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:
parent
01341f33e3
commit
11a07b37e1
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue