fix feed link for relative url
This commit is contained in:
parent
93ff42af46
commit
d3a027bb1f
|
@ -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>",
|
||||||
|
|
Loading…
Reference in New Issue