Clean up syndicated post content
This commit is contained in:
@@ -19,7 +19,7 @@ module Adamantium
|
|||||||
content = if post[:name]
|
content = if post[:name]
|
||||||
"#{post[:name]} — #{settings.micropub_site_url}/post/#{post[:slug]}"
|
"#{post[:name]} — #{settings.micropub_site_url}/post/#{post[:slug]}"
|
||||||
else
|
else
|
||||||
sanitze_post(post[:content])
|
"#{sanitze_post(post[:content])} \r\n\r\n 🔗 #{settings.micropub_site_url}/post/#{post[:slug]}"
|
||||||
end
|
end
|
||||||
|
|
||||||
tags = post[:category].map { |tag| "##{tag}" }.join(" ")
|
tags = post[:category].map { |tag| "##{tag}" }.join(" ")
|
||||||
|
Reference in New Issue
Block a user