Don't post link back to blog if making a simple post

This commit is contained in:
2023-02-25 17:31:02 +11:00
parent b151b11274
commit 58124efde5

View File

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