DEV: Clean up freedom patches

This patch removes some of our freedom patches that have been deprecated
for some time now.
Some of them have been updated so we’re not shipping code based on an
old version of Rails.
This commit is contained in:
Loïc Guitaut
2022-04-05 12:08:28 +02:00
committed by Loïc Guitaut
parent bf3260faea
commit 357011eb3b
12 changed files with 30 additions and 354 deletions

View File

@@ -466,8 +466,7 @@ module Email
# via group SMTP and if reply by email site settings are configured
return if !user_id || !post_id || !header_value(Email::MessageBuilder::ALLOW_REPLY_BY_EMAIL_HEADER).present?
# use safe variant here cause we tend to see concurrency issue
reply_key = PostReplyKey.find_or_create_by_safe!(
PostReplyKey.create_or_find_by!(
post_id: post_id,
user_id: user_id
).reply_key