From d3a027bb1f6b661792d877aa62ed0d09141af26c Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 17 Oct 2024 01:44:29 +0000 Subject: [PATCH] fix feed link for relative url --- app/models/site_feed_annc.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/models/site_feed_annc.rb b/app/models/site_feed_annc.rb index 9952b79..ff4f043 100644 --- a/app/models/site_feed_annc.rb +++ b/app/models/site_feed_annc.rb @@ -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?