From 051922e13cb8b345d76587ed624d5b21c88ffd7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Thu, 30 Dec 2021 18:04:52 +0800 Subject: [PATCH] fix error --- app/models/site_feed_annc.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/site_feed_annc.rb b/app/models/site_feed_annc.rb index 32dda7e..ecb4593 100644 --- a/app/models/site_feed_annc.rb +++ b/app/models/site_feed_annc.rb @@ -187,9 +187,9 @@ class SiteFeedAnnc tmp = data['data'] if tmp["link_to_show"].nil? if !is_widget - tmp["link_to_show"] = UseSourceUrl && tmp["show_url"] ? tmp["show_url"] : OrbitHelper.url_to_show(tmp["params"]) rescue '' + tmp["link_to_show"] = UseSourceUrl && tmp["show_url"] ? (tmp["source-site"] + tmp["show_url"]) : OrbitHelper.url_to_show(tmp["params"]) rescue '' else - tmp["link_to_show"] = UseSourceUrl && tmp["show_url"] ? tmp["show_url"] : OrbitHelper.widget_item_url(tmp["params"]) rescue '' + tmp["link_to_show"] = UseSourceUrl && tmp["show_url"] ? (tmp["source-site"] + tmp["show_url"]) : OrbitHelper.widget_item_url(tmp["params"]) rescue '' end end tmp @@ -209,9 +209,9 @@ class SiteFeedAnnc next if tmp["is_hidden"] || (!tmp["postdate"].nil? && tmp["postdate"]