mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Follow up to 152238b4cff7ab4c4ce63ba26abd23b0abf05129.
This commit is contained in:
@ -37,11 +37,7 @@ class Embedding < OpenStruct
|
|||||||
|
|
||||||
def self.find
|
def self.find
|
||||||
embedding_args = { id: 'default' }
|
embedding_args = { id: 'default' }
|
||||||
|
Embedding.settings.each { |s| embedding_args[s] = SiteSetting.get(s) }
|
||||||
Embedding.settings.each do |s|
|
|
||||||
embedding_args[s] = SiteSetting.public_send(s)
|
|
||||||
end
|
|
||||||
|
|
||||||
Embedding.new(embedding_args)
|
Embedding.new(embedding_args)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -53,7 +53,7 @@ module DiscourseNarrativeBot
|
|||||||
if (@skip && @state != :end)
|
if (@skip && @state != :end)
|
||||||
skip_tutorial(next_state)
|
skip_tutorial(next_state)
|
||||||
else
|
else
|
||||||
self.public_send(action)
|
self.send(action)
|
||||||
end
|
end
|
||||||
|
|
||||||
if new_post
|
if new_post
|
||||||
|
Reference in New Issue
Block a user