maybe fixed listenbrainz?
Some checks failed
Lint / pnpm_install (pull_request) Successful in 29s
Test (misskey.js) / test (22.x) (pull_request) Successful in 48s
Test (frontend) / vitest (22.x) (pull_request) Failing after 1m20s
Test (production install and build) / production (22.x) (pull_request) Successful in 1m2s
Lint / lint (backend) (pull_request) Successful in 56s
Test (backend) / unit (22.x) (pull_request) Successful in 2m28s
Lint / lint (sw) (pull_request) Successful in 29s
API report (misskey.js) / report (pull_request) Successful in 5m40s
Lint / typecheck (misskey-js) (pull_request) Successful in 29s
Test (backend) / e2e (22.x) (pull_request) Failing after 6m23s
Lint / lint (misskey-js) (pull_request) Successful in 5m13s
Lint / typecheck (backend) (pull_request) Successful in 5m19s
Test (backend) / validate-api-json (22.x) (pull_request) Successful in 10m8s
Lint / lint (frontend) (pull_request) Successful in 9m53s
Some checks failed
Lint / pnpm_install (pull_request) Successful in 29s
Test (misskey.js) / test (22.x) (pull_request) Successful in 48s
Test (frontend) / vitest (22.x) (pull_request) Failing after 1m20s
Test (production install and build) / production (22.x) (pull_request) Successful in 1m2s
Lint / lint (backend) (pull_request) Successful in 56s
Test (backend) / unit (22.x) (pull_request) Successful in 2m28s
Lint / lint (sw) (pull_request) Successful in 29s
API report (misskey.js) / report (pull_request) Successful in 5m40s
Lint / typecheck (misskey-js) (pull_request) Successful in 29s
Test (backend) / e2e (22.x) (pull_request) Failing after 6m23s
Lint / lint (misskey-js) (pull_request) Successful in 5m13s
Lint / typecheck (backend) (pull_request) Successful in 5m19s
Test (backend) / validate-api-json (22.x) (pull_request) Successful in 10m8s
Lint / lint (frontend) (pull_request) Successful in 9m53s
This commit is contained in:
parent
f65e3bdf88
commit
5de77871ec
4 changed files with 10 additions and 0 deletions
|
@ -537,6 +537,10 @@ export class ApRendererService {
|
|||
person['vcard:Address'] = profile.location;
|
||||
}
|
||||
|
||||
if (profile.listenbrainz) {
|
||||
person.listenbrainz = profile.listenbrainz;
|
||||
}
|
||||
|
||||
return person;
|
||||
}
|
||||
|
||||
|
|
|
@ -553,6 +553,9 @@ export const CONTEXTS: (string | Context)[] = [
|
|||
'_misskey_votes': 'misskey:_misskey_votes',
|
||||
'_misskey_summary': 'misskey:_misskey_summary',
|
||||
'isCat': 'misskey:isCat',
|
||||
|
||||
sharkey: 'https://joinsharkey.org/ns#',
|
||||
listenbrainz: 'sharkey:listenbrainz',
|
||||
// vcard
|
||||
vcard: 'http://www.w3.org/2006/vcard/ns#',
|
||||
} satisfies Context,
|
||||
|
|
|
@ -410,6 +410,7 @@ export class ApPersonService implements OnModuleInit {
|
|||
birthday: bday?.[0] ?? null,
|
||||
location: person['vcard:Address'] ?? null,
|
||||
userHost: host,
|
||||
listenbrainz: person.listenbrainz ?? null,
|
||||
}));
|
||||
|
||||
if (person.publicKey) {
|
||||
|
@ -615,6 +616,7 @@ export class ApPersonService implements OnModuleInit {
|
|||
followersVisibility,
|
||||
birthday: bday?.[0] ?? null,
|
||||
location: person['vcard:Address'] ?? null,
|
||||
listenbrainz: person.listenbrainz ?? null,
|
||||
});
|
||||
|
||||
this.globalEventService.publishInternalEvent('remoteUserUpdated', { id: exist.id });
|
||||
|
|
|
@ -191,6 +191,7 @@ export interface IActor extends IObject {
|
|||
};
|
||||
'vcard:bday'?: string;
|
||||
'vcard:Address'?: string;
|
||||
listenbrainz?: string;
|
||||
}
|
||||
|
||||
export const isCollection = (object: IObject): object is ICollection =>
|
||||
|
|
Loading…
Reference in a new issue