fix exception handling for Announce activities
This commit is contained in:
@@ -297,7 +297,7 @@ export class ApInboxService {
|
|||||||
|
|
||||||
const target = await resolver.resolve(activityObject).catch(e => {
|
const target = await resolver.resolve(activityObject).catch(e => {
|
||||||
this.logger.error(`Resolution failed: ${e}`);
|
this.logger.error(`Resolution failed: ${e}`);
|
||||||
return e;
|
throw e;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isPost(target)) return await this.announceNote(actor, activity, target);
|
if (isPost(target)) return await this.announceNote(actor, activity, target);
|
||||||
|
|||||||
Reference in New Issue
Block a user