Skip to content

Commit

Permalink
FIX: #present -> #presence typo in TopicRetriever (discourse#20509)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldmosquera authored Mar 2, 2023
1 parent 31480bd commit e204c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/topic_retriever.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def perform_retrieve
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))
Expand Down

0 comments on commit e204c61

Please sign in to comment.