Would rebaking help? Is there a command in the console?
I found that
seems to be useful to show what would be fetched.
Looking through the source I found this to be a working solution:
username = SiteSetting.embed_by_username.downcase
user = User.where(username_lower: username.downcase).first
embed_url = "http://www.example.org" # or use the url from topic as shown below
taken from TopicRetriever.fetch_http (https://github.com/discourse/discourse/blob/888e68a1637ca784a7bf51a6bbb524dcf7413b13/lib/topic_retriever.rb#L48)
where embed_url is the url of the site where discourse is embedded, coming from the topic with the number topic_id this may be
embed_url = TopicEmbed.where(topic: topic_id).embed_url
This seems a bit complicated to just refetch. Is it correct anyway? Is there a simpler possibility?