mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 08:13:07 +02:00
fix: relays not getting accepted
This commit is contained in:
parent
f73e56ca2c
commit
6cac291d3d
1 changed files with 6 additions and 6 deletions
|
@ -296,9 +296,9 @@ export class ApPersonService implements OnModuleInit {
|
||||||
|
|
||||||
//#region resolve counts
|
//#region resolve counts
|
||||||
const _resolver = resolver ?? this.apResolverService.createResolver();
|
const _resolver = resolver ?? this.apResolverService.createResolver();
|
||||||
const outboxcollection = await _resolver.resolveCollection(person.outbox);
|
const outboxcollection = await _resolver.resolveCollection(person.outbox).catch(() => { return null; });
|
||||||
const followerscollection = await _resolver.resolveCollection(person.followers!);
|
const followerscollection = await _resolver.resolveCollection(person.followers!).catch(() => { return null; });
|
||||||
const followingcollection = await _resolver.resolveCollection(person.following!);
|
const followingcollection = await _resolver.resolveCollection(person.following!).catch(() => { return null; });
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Start transaction
|
// Start transaction
|
||||||
|
@ -320,9 +320,9 @@ export class ApPersonService implements OnModuleInit {
|
||||||
host,
|
host,
|
||||||
inbox: person.inbox,
|
inbox: person.inbox,
|
||||||
sharedInbox: person.sharedInbox ?? person.endpoints?.sharedInbox,
|
sharedInbox: person.sharedInbox ?? person.endpoints?.sharedInbox,
|
||||||
notesCount: outboxcollection.totalItems ?? 0,
|
notesCount: outboxcollection?.totalItems ?? 0,
|
||||||
followersCount: followerscollection.totalItems ?? 0,
|
followersCount: followerscollection?.totalItems ?? 0,
|
||||||
followingCount: followingcollection.totalItems ?? 0,
|
followingCount: followingcollection?.totalItems ?? 0,
|
||||||
followersUri: person.followers ? getApId(person.followers) : undefined,
|
followersUri: person.followers ? getApId(person.followers) : undefined,
|
||||||
featured: person.featured ? getApId(person.featured) : undefined,
|
featured: person.featured ? getApId(person.featured) : undefined,
|
||||||
uri: person.id,
|
uri: person.id,
|
||||||
|
|
Loading…
Reference in a new issue