Skip to content

Commit 6c262d8

Browse files
committed
fix: 👽 Nickname attribute instead of display name
1 parent e886c59 commit 6c262d8

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

‎src/User/Attributes.php‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,23 @@ class Attributes
1717
/** @var string|null */
1818
public $password;
1919

20-
/** @var string */
20+
/**
21+
* WARNING! This is read only! Overwriting this when updating the user won't do anything!
22+
* To change the display name use the $nickname variable (beta16+. Nickname extension required).
23+
*
24+
* @var string
25+
* @see $nickname
26+
*/
2127
public $displayName;
2228

29+
/**
30+
* WARNING! This is write only! To read this attribute use the $displayName property.
31+
* To change the nickname you must have the nickname extension installed on your Flarum.
32+
*
33+
* @var string
34+
*/
35+
public $nickname;
36+
2337
/** @var string */
2438
public $avatarUrl;
2539

0 commit comments

Comments
 (0)