FIX: #present -> #presence typo in TopicRetriever (#20509)

This commit is contained in:
Leonardo Mosquera 2023-03-02 13:05:45 -03:00 committed by GitHub
parent 31480bde92
commit e204c61bd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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))