@@ -46,6 +46,9 @@ class Provider implements IProvider {
4646 public const EMAIL_CHANGED_BY = 'email_changed_by ' ;
4747 public const EMAIL_CHANGED_SELF = 'email_changed_self ' ;
4848 public const EMAIL_CHANGED = 'email_changed ' ;
49+ public const DISPLAY_NAME_CHANGED_BY = 'displayname_changed_by ' ;
50+ public const DISPLAY_NAME_CHANGED_SELF = 'displayname_changed_self ' ;
51+ public const DISPLAY_NAME_CHANGED = 'displayname_changed ' ;
4952 public const APP_TOKEN_CREATED = 'app_token_created ' ;
5053 public const APP_TOKEN_DELETED = 'app_token_deleted ' ;
5154 public const APP_TOKEN_RENAMED = 'app_token_renamed ' ;
@@ -115,6 +118,12 @@ public function parse($language, IEvent $event, IEvent $previousEvent = null): I
115118 $ subject = $ this ->l ->t ('You changed your email address ' );
116119 } elseif ($ event ->getSubject () === self ::EMAIL_CHANGED ) {
117120 $ subject = $ this ->l ->t ('Your email address was changed by an administrator ' );
121+ } elseif ($ event ->getSubject () === self ::DISPLAY_NAME_CHANGED_BY ) {
122+ $ subject = $ this ->l ->t ('{actor} changed your display name ' );
123+ } elseif ($ event ->getSubject () === self ::DISPLAY_NAME_CHANGED_SELF ) {
124+ $ subject = $ this ->l ->t ('You changed your display name ' );
125+ } elseif ($ event ->getSubject () === self ::DISPLAY_NAME_CHANGED ) {
126+ $ subject = $ this ->l ->t ('Your display name was changed by an administrator ' );
118127 } elseif ($ event ->getSubject () === self ::APP_TOKEN_CREATED ) {
119128 $ subject = $ this ->l ->t ('You created app password "{token}" ' );
120129 } elseif ($ event ->getSubject () === self ::APP_TOKEN_DELETED ) {
@@ -150,12 +159,18 @@ protected function getParameters(IEvent $event): array {
150159 case self ::PASSWORD_RESET_SELF :
151160 case self ::EMAIL_CHANGED_SELF :
152161 case self ::EMAIL_CHANGED :
162+ case self ::DISPLAY_NAME_CHANGED_SELF :
163+ case self ::DISPLAY_NAME_CHANGED :
153164 return [];
154165 case self ::PASSWORD_CHANGED_BY :
155166 case self ::EMAIL_CHANGED_BY :
156167 return [
157168 'actor ' => $ this ->generateUserParameter ($ parameters [0 ]),
158169 ];
170+ case self ::DISPLAY_NAME_CHANGED_BY :
171+ return [
172+ 'actor ' => $ this ->generateUserParameter ($ parameters ['actor ' ]),
173+ ];
159174 case self ::APP_TOKEN_CREATED :
160175 case self ::APP_TOKEN_DELETED :
161176 case self ::APP_TOKEN_FILESYSTEM_GRANTED :
0 commit comments