fix: 🐛 Add missing references to speakAsCat
This commit is contained in:
parent
7664a69e0f
commit
06f7c8eb20
3 changed files with 7 additions and 2 deletions
|
@ -302,7 +302,7 @@ export async function createPerson(
|
||||||
tags,
|
tags,
|
||||||
isBot,
|
isBot,
|
||||||
isCat: (person as any).isCat === true,
|
isCat: (person as any).isCat === true,
|
||||||
speakAsCat: person.speakAsCat,
|
speakAsCat: (person as any).speakAsCat === true,
|
||||||
isIndexable: person.indexable,
|
isIndexable: person.indexable,
|
||||||
}),
|
}),
|
||||||
)) as IRemoteUser;
|
)) as IRemoteUser;
|
||||||
|
@ -549,6 +549,7 @@ export async function updatePerson(
|
||||||
tags,
|
tags,
|
||||||
isBot: getApType(object) !== "Person",
|
isBot: getApType(object) !== "Person",
|
||||||
isCat: (person as any).isCat === true,
|
isCat: (person as any).isCat === true,
|
||||||
|
speakAsCat: (person as any).speakAsCat === true,
|
||||||
isIndexable: person.indexable,
|
isIndexable: person.indexable,
|
||||||
isLocked: !!person.manuallyApprovesFollowers,
|
isLocked: !!person.manuallyApprovesFollowers,
|
||||||
movedToUri: person.movedTo || null,
|
movedToUri: person.movedTo || null,
|
||||||
|
|
|
@ -69,6 +69,7 @@ describe("ユーザー", () => {
|
||||||
avatarBlurhash: user.avatarBlurhash,
|
avatarBlurhash: user.avatarBlurhash,
|
||||||
isBot: user.isBot,
|
isBot: user.isBot,
|
||||||
isCat: user.isCat,
|
isCat: user.isCat,
|
||||||
|
speakAsCat: user.speakAsCat,
|
||||||
instance: user.instance,
|
instance: user.instance,
|
||||||
emojis: user.emojis,
|
emojis: user.emojis,
|
||||||
onlineStatus: user.onlineStatus,
|
onlineStatus: user.onlineStatus,
|
||||||
|
@ -401,6 +402,7 @@ describe("ユーザー", () => {
|
||||||
assert.strictEqual(response.avatarBlurhash, null);
|
assert.strictEqual(response.avatarBlurhash, null);
|
||||||
assert.strictEqual(response.isBot, false);
|
assert.strictEqual(response.isBot, false);
|
||||||
assert.strictEqual(response.isCat, false);
|
assert.strictEqual(response.isCat, false);
|
||||||
|
assert.strictEqual(response.speakAsCat, false);
|
||||||
assert.strictEqual(response.instance, undefined);
|
assert.strictEqual(response.instance, undefined);
|
||||||
assert.deepStrictEqual(response.emojis, {});
|
assert.deepStrictEqual(response.emojis, {});
|
||||||
assert.strictEqual(response.onlineStatus, "unknown");
|
assert.strictEqual(response.onlineStatus, "unknown");
|
||||||
|
@ -538,6 +540,8 @@ describe("ユーザー", () => {
|
||||||
{ parameters: (): object => ({ isBot: false }) },
|
{ parameters: (): object => ({ isBot: false }) },
|
||||||
{ parameters: (): object => ({ isCat: true }) },
|
{ parameters: (): object => ({ isCat: true }) },
|
||||||
{ parameters: (): object => ({ isCat: false }) },
|
{ parameters: (): object => ({ isCat: false }) },
|
||||||
|
{ parameters: (): object => ({ speakAsCat: true }) },
|
||||||
|
{ parameters: (): object => ({ speakAsCat: false }) },
|
||||||
{ parameters: (): object => ({ injectFeaturedNote: true }) },
|
{ parameters: (): object => ({ injectFeaturedNote: true }) },
|
||||||
{ parameters: (): object => ({ injectFeaturedNote: false }) },
|
{ parameters: (): object => ({ injectFeaturedNote: false }) },
|
||||||
{ parameters: (): object => ({ receiveAnnouncementEmail: true }) },
|
{ parameters: (): object => ({ receiveAnnouncementEmail: true }) },
|
||||||
|
|
|
@ -141,7 +141,7 @@
|
||||||
}}</template></FormSwitch
|
}}</template></FormSwitch
|
||||||
>
|
>
|
||||||
<FormSwitch
|
<FormSwitch
|
||||||
v-if="profile.isCat"
|
v-if="profile.speakAsCat"
|
||||||
v-model="profile.speakAsCat"
|
v-model="profile.speakAsCat"
|
||||||
class="_formBlock"
|
class="_formBlock"
|
||||||
>{{ i18n.ts.flagSpeakAsCat
|
>{{ i18n.ts.flagSpeakAsCat
|
||||||
|
|
Loading…
Reference in a new issue