dmails: fixup exceptions when verifying dmail keys.
Fix show action throwing exceptions when viewing a dmail without a dmail key.
This commit is contained in:
@@ -121,7 +121,7 @@ class Dmail < ApplicationRecord
|
||||
end
|
||||
|
||||
def valid_key?(key)
|
||||
id == verifier.verify(key)
|
||||
id == verifier.verified(key)
|
||||
end
|
||||
|
||||
def visible_to?(user, key)
|
||||
|
||||
Reference in New Issue
Block a user