Commit 5c8d430f authored by Grant's avatar Grant
Browse files

apublive#reply was not targeting the correct actor

parent 393393e9
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -182,7 +182,9 @@ export class APubLive implements IAPubUtils {

  static async reply<T extends fedify.Object>(replyTo: T, reply: T) {
    const apub = this.get();
    const recipients = await apub.getRecipients(reply);
    const recipient = await this.lookupActor(replyTo.attributionId!);

    if (!recipient) throw new Error("Failed to get recipient");

    reply = apub.prepareObject(reply, Date.now());
    reply = reply.clone({
@@ -194,7 +196,7 @@ export class APubLive implements IAPubUtils {

    await apub.ctx.sendActivity(
      { identifier: USER_IDENTIFIER },
      recipients,
      recipient,
      new Create({
        id: new URL("#create", reply.id!),
        actor: apub.getActorUri(USER_IDENTIFIER),