StandardRb

This commit is contained in:
2024-03-22 08:48:47 +11:00
parent a2c11de10f
commit f48e41728a
6 changed files with 9 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ module Adamantium
return unless mail.subject == "About that post of yours"
reply_content, in_reply_to = mail.body.decoded.split("---")
post_url = URI.join(settings.micropub_site_url, in_reply_to.match(URI::DEFAULT_PARSER.make_regexp)[7]&.gsub(")", "")).to_s
post_url = URI.join(settings.micropub_site_url, in_reply_to.match(URI::DEFAULT_PARSER.make_regexp)[7]&.delete(")")).to_s
slug = post_url.split("/").last
post = post_repo.fetch!(slug)

View File

@@ -15,4 +15,3 @@ module Adamantium
end
end
end