mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:11:08 +08:00
FIX: Don't raise an exception if a topic cannot be retrieved (#9906)
This commit is contained in:
@ -116,7 +116,7 @@ class TopicEmbed < ActiveRecord::Base
|
||||
)
|
||||
|
||||
url = fd.resolve
|
||||
raise URI::InvalidURIError if url.blank?
|
||||
return if url.blank?
|
||||
|
||||
opts = {
|
||||
tags: %w[div p code pre h1 h2 h3 b em i strong a img ul li ol blockquote],
|
||||
|
Reference in New Issue
Block a user