Skip to content

A platform for community discussion. Free, open, simple.

Follow up to 152238b4cff7ab4c4ce63ba26abd23b0abf05129.

Guo Xiang Tan61cc0f8c5f95
diff --git a/app/models/embedding.rb b/app/models/embedding.rb
index 5216a47864f..bba8538097f 100644
--- a/app/models/embedding.rb
+++ b/app/models/embedding.rb
@@ -37,11 +37,7 @@ class Embedding < OpenStruct
def self.find
embedding_args = { id: 'default' }
-
- Embedding.settings.each do |s|
- embedding_args[s] = SiteSetting.public_send(s)
- end
-
+ Embedding.settings.each { |s| embedding_args[s] = SiteSetting.get(s) }
Embedding.new(embedding_args)
end
end
diff --git a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/base.rb b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/base.rb
index 6e4d7e827c4..18673713bc7 100644
--- a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/base.rb
+++ b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/base.rb
@@ -53,7 +53,7 @@ module DiscourseNarrativeBot
if (@skip && @state != :end)
skip_tutorial(next_state)
else
- self.public_send(action)
+ self.send(action)
end
if new_post