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

@ -234,6 +234,11 @@ class SiteFeedAnnc
tmp["source-site-title"] = self.channel_title(locale) 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? if !tmp["source-site-title"].blank?
tmp['statuses'] << { tmp['statuses'] << {
"status" => "<a href=\"#{tmp["source-site"]}\" target=\"_blank\" class=\"feed-source\">#{tmp["source-site-title"]}</a>", "status" => "<a href=\"#{tmp["source-site"]}\" target=\"_blank\" class=\"feed-source\">#{tmp["source-site-title"]}</a>",