Clean up syndicated post content

This commit is contained in:
2023-11-03 08:35:55 +11:00
parent 769493eb6b
commit df7172b19e

View File

@@ -19,7 +19,7 @@ module Adamantium
content = if post[:name]
"#{post[:name]}#{settings.micropub_site_url}/post/#{post[:slug]}"
else
sanitze_post(post[:content])
"#{sanitze_post(post[:content])} \r\n\r\n 🔗 #{settings.micropub_site_url}/post/#{post[:slug]}"
end
tags = post[:category].map { |tag| "##{tag}" }.join(" ")