summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-08-14 19:44:15 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-08-14 19:44:15 +1000
commit7ab7c240a5314a8622ce3ab3ff8810e2287d6a11 (patch)
tree9a694a80ccac14f2337db8fcd19cc7cbb1321bb0 /src
parentfdshigidfg (diff)
downloadserver-7ab7c240a5314a8622ce3ab3ff8810e2287d6a11.tar.xz
update preferredUsername
Diffstat (limited to 'src')
-rw-r--r--src/util/entities/Channel.ts2
-rw-r--r--src/util/entities/User.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/util/entities/Channel.ts b/src/util/entities/Channel.ts

index 28c3af7f..ae05fa83 100644 --- a/src/util/entities/Channel.ts +++ b/src/util/entities/Channel.ts
@@ -517,7 +517,7 @@ export class Channel extends BaseClass { type: "Group", id: `https://${webDomain}/fed/channel/${this.id}`, name: this.name, - preferredUsername: this.name, + preferredUsername: this.id, summary: this.topic, icon: undefined, diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts
index 435ae3c9..f733edd3 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts
@@ -298,7 +298,7 @@ export class User extends BaseClass { type: "Person", id: `https://${webDomain}/fed/user/${this.id}`, name: this.username, - preferredUsername: this.username, + preferredUsername: this.id, summary: this.bio, icon: this.avatar ? [