mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-08 04:54:32 +00:00
requested changes.
This commit is contained in:
parent
ee93b5d480
commit
eb88920f41
3 changed files with 11 additions and 5 deletions
|
@ -433,7 +433,7 @@ export class ApPersonService implements OnModuleInit, OnApplicationShutdown {
|
||||||
makeNotesFollowersOnlyBefore: (person as any).makeNotesFollowersOnlyBefore ?? null,
|
makeNotesFollowersOnlyBefore: (person as any).makeNotesFollowersOnlyBefore ?? null,
|
||||||
makeNotesHiddenBefore: (person as any).makeNotesHiddenBefore ?? null,
|
makeNotesHiddenBefore: (person as any).makeNotesHiddenBefore ?? null,
|
||||||
emojis,
|
emojis,
|
||||||
attributionDomains: (person as any).attributionDomains,
|
attributionDomains: person.attributionDomains ?? [],
|
||||||
})) as MiRemoteUser;
|
})) as MiRemoteUser;
|
||||||
|
|
||||||
let _description: string | null = null;
|
let _description: string | null = null;
|
||||||
|
@ -617,7 +617,7 @@ export class ApPersonService implements OnModuleInit, OnApplicationShutdown {
|
||||||
// We use "!== false" to handle incorrect types, missing / null values, and "default to true" logic.
|
// We use "!== false" to handle incorrect types, missing / null values, and "default to true" logic.
|
||||||
hideOnlineStatus: person.hideOnlineStatus !== false,
|
hideOnlineStatus: person.hideOnlineStatus !== false,
|
||||||
isExplorable: person.discoverable !== false,
|
isExplorable: person.discoverable !== false,
|
||||||
attributionDomains: person.attributionDomains,
|
attributionDomains: person.attributionDomains ?? [],
|
||||||
...(await this.resolveAvatarAndBanner(exist, person.icon, person.image, person.backgroundUrl).catch(() => ({}))),
|
...(await this.resolveAvatarAndBanner(exist, person.icon, person.image, person.backgroundUrl).catch(() => ({}))),
|
||||||
} as Partial<MiRemoteUser> & Pick<MiRemoteUser, 'isBot' | 'isCat' | 'speakAsCat' | 'isLocked' | 'movedToUri' | 'alsoKnownAs' | 'isExplorable'>;
|
} as Partial<MiRemoteUser> & Pick<MiRemoteUser, 'isBot' | 'isCat' | 'speakAsCat' | 'isLocked' | 'movedToUri' | 'alsoKnownAs' | 'isExplorable'>;
|
||||||
|
|
||||||
|
|
|
@ -239,8 +239,9 @@ export const packedUserLiteSchema = {
|
||||||
attributionDomains: {
|
attributionDomains: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
nullable: false, optional: false,
|
nullable: false, optional: false,
|
||||||
additionalProperties: {
|
items: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
nullable: false, optional: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -259,8 +259,13 @@ function refresh(withFetch = false) {
|
||||||
activityPub.value = info?.activityPub ?? null;
|
activityPub.value = info?.activityPub ?? null;
|
||||||
linkAttribution.value = info?.linkAttribution ?? null;
|
linkAttribution.value = info?.linkAttribution ?? null;
|
||||||
if (linkAttribution.value) {
|
if (linkAttribution.value) {
|
||||||
misskeyApi('users/show', { userId: linkAttribution.value.userId })
|
try {
|
||||||
.then(u => attributionUser.value = u);
|
const response = await misskeyApi('users/show', { userId: linkAttribution.value.userId });
|
||||||
|
attributionUser.value = response;
|
||||||
|
} catch {
|
||||||
|
// makes the loading ellipsis vanish.
|
||||||
|
linkAttribution.value = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
theNote.value = null;
|
theNote.value = null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue