mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-27 15:16:43 -06:00
Revert "Reapply "pass resolver when creating notes via side-effect""
This reverts commit 75f5a8babf
.
This commit is contained in:
parent
517b44d1cf
commit
e466196ddf
1 changed files with 3 additions and 6 deletions
|
@ -164,7 +164,7 @@ export class ApInboxService {
|
|||
} else if (isAnnounce(activity)) {
|
||||
return await this.announce(actor, activity, resolver);
|
||||
} else if (isLike(activity)) {
|
||||
return await this.like(actor, activity, resolver);
|
||||
return await this.like(actor, activity);
|
||||
} else if (isUndo(activity)) {
|
||||
return await this.undo(actor, activity, resolver);
|
||||
} else if (isBlock(activity)) {
|
||||
|
@ -196,13 +196,10 @@ export class ApInboxService {
|
|||
}
|
||||
|
||||
@bindThis
|
||||
private async like(actor: MiRemoteUser, activity: ILike, resolver?: Resolver): Promise<string> {
|
||||
private async like(actor: MiRemoteUser, activity: ILike): Promise<string> {
|
||||
const targetUri = getApId(activity.object);
|
||||
|
||||
const object = fromTuple(activity.object);
|
||||
if (!object) return 'skip: activity has no object property';
|
||||
|
||||
const note = await this.apNoteService.resolveNote(object, { resolver });
|
||||
const note = await this.apNoteService.fetchNote(targetUri);
|
||||
if (!note) return `skip: target note not found ${targetUri}`;
|
||||
|
||||
await this.apNoteService.extractEmojis(activity.tag ?? [], actor.host).catch(() => null);
|
||||
|
|
Loading…
Reference in a new issue