summaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 8825c18ea48..3f07e1b1ec0 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -2159,6 +2159,10 @@ class User < ApplicationRecord
(Date.current - created_at.to_date).to_i
end
+ def webhook_email
+ public_email.presence || _('[REDACTED]')
+ end
+
protected
# override, from Devise::Validatable