diff --git a/.gitignore b/.gitignore index 90f7552..cb8d4d3 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ Capfile config/deploy.rb config/deploy/production.rb config/systemd/que.service.erb +config/systemd/mail_room.service.erb config/mail_room.yaml script/deploy tmp/* diff --git a/lib/adamantium/jobs/save_email_reply.rb b/lib/adamantium/jobs/save_email_reply.rb index b3e741e..828bf13 100644 --- a/lib/adamantium/jobs/save_email_reply.rb +++ b/lib/adamantium/jobs/save_email_reply.rb @@ -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]).to_s slug = post_url.split("/").last post = post_repo.fetch!(slug)