From e204c61bd8f8e6887c8e7c80dcf5de8abb98003b Mon Sep 17 00:00:00 2001 From: Leonardo Mosquera Date: Thu, 2 Mar 2023 13:05:45 -0300 Subject: [PATCH] FIX: #present -> #presence typo in TopicRetriever (#20509) --- lib/topic_retriever.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/topic_retriever.rb b/lib/topic_retriever.rb index 61936f1e45a..94da883250d 100644 --- a/lib/topic_retriever.rb +++ b/lib/topic_retriever.rb @@ -43,7 +43,7 @@ class TopicRetriever end username = - @opts[:author_username].present || SiteSetting.embed_by_username.presence || + @opts[:author_username].presence || SiteSetting.embed_by_username.presence || SiteSetting.site_contact_username.presence || Discourse.system_user.username TopicEmbed.import_remote(@embed_url, user: User.find_by(username_lower: username.downcase))