diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-26 12:09:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-26 12:09:02 +0300 |
commit | d79bf171e4bcbb551a8320211ee337368b4d114c (patch) | |
tree | 63f4305ee043eb6ca4b6f2113d8067b388b68ed8 /app/models/user_status.rb | |
parent | 6723a4288d29b11beec2de92fb7cfd682c9dcc50 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/user_status.rb')
-rw-r--r-- | app/models/user_status.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/user_status.rb b/app/models/user_status.rb index 7a803e8f1f6..cb6f4dd9dae 100644 --- a/app/models/user_status.rb +++ b/app/models/user_status.rb @@ -32,6 +32,10 @@ class UserStatus < ApplicationRecord def clear_status_after=(value) self.clear_status_at = CLEAR_STATUS_QUICK_OPTIONS[value]&.from_now end + + def customized? + message.present? || emoji != UserStatus::DEFAULT_EMOJI + end end UserStatus.prepend_mod_with('UserStatus') |