mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
Use display name of users to share dialog and notes. See issue #49
This commit is contained in:
@@ -20,18 +20,24 @@ class NoteShare extends Entity implements JsonSerializable {
|
||||
protected $sharedGroup;
|
||||
|
||||
protected $userId;
|
||||
protected $displayname;
|
||||
|
||||
public function setUserId (string $userId): void {
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
public function setDisplayName (string $displayName): void {
|
||||
$this->displayName = $displayName;
|
||||
}
|
||||
|
||||
public function jsonSerialize() {
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'note_id' => $this->noteId,
|
||||
'shared_user' => $this->sharedUser,
|
||||
'shared_group' => $this->sharedGroup,
|
||||
'user_id' => $this->userId
|
||||
'user_id' => $this->userId,
|
||||
'display_name' => $this->displayName
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user