fix feed link for relative url

This commit is contained in:
chiu 2024-10-17 01:44:29 +00:00
parent 93ff42af46
commit d3a027bb1f
1 changed files with 5 additions and 0 deletions

View File

@ -232,6 +232,11 @@ class SiteFeedAnnc
tmp["source_url"] = self.remote_site_url
tmp["source-site"] = self.remote_site_url
tmp["source-site-title"] = self.channel_title(locale)
if !tmp["link_to_show"].blank?
tmp["link_to_show"] = URI.join(tmp["source_url"],URI.encode(tmp["link_to_show"])).to_s
end
if !tmp["source-site-title"].blank?