mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "FIX: Partial reply key search in email sent logs."
This reverts commit e9b2018bc8.
This commit is contained in:
@@ -73,6 +73,10 @@ class EmailLog < ActiveRecord::Base
|
||||
.first
|
||||
end
|
||||
|
||||
def bounce_key
|
||||
super&.delete('-')
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
|
||||
@@ -8,8 +8,12 @@ class PostReplyKey < ActiveRecord::Base
|
||||
validates :user_id, presence: true
|
||||
validates :reply_key, presence: true
|
||||
|
||||
def reply_key
|
||||
super&.delete('-')
|
||||
end
|
||||
|
||||
def self.generate_reply_key
|
||||
SecureRandom.uuid
|
||||
SecureRandom.hex(16)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user