mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
Merge pull request #3391 from wjordan/topic_embed_fix
Fix `NoMethodError` in TopicEmbed#find_remote
This commit is contained in:
commit
4ca5fe69cc
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class TopicEmbed < ActiveRecord::Base
|
|||
doc.search(tags.keys.join(',')).each do |node|
|
||||
url_param = tags[node.name]
|
||||
src = node[url_param]
|
||||
unless (src.empty?)
|
||||
unless (src.nil? || src.empty?)
|
||||
begin
|
||||
uri = URI.parse(src)
|
||||
unless uri.host
|
||||
|
|
Loading…
Reference in a new issue