Commit dac9223c authored by Grant's avatar Grant
Browse files

prevent entire actor from being attached to activity

fixes #26
parent c2881fd0
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -145,14 +145,14 @@ Do not share this code. This code is used to identify you.`;
      case "ChatMessage":
      case "http://litepub.social/ns#ChatMessage":
        return new fedify.ChatMessage({
          to,
          to: to.id!,
          published: this.createdAt.toTemporalInstant(),
          content,
        }) as any;
      case "Note":
      case "https://www.w3.org/ns/activitystreams#Note":
        return new fedify.Note({
          to,
          to: to.id!,
          published: this.createdAt.toTemporalInstant(),
          content,
          tags: [
+2 −2
Original line number Diff line number Diff line
@@ -18,14 +18,14 @@ export class TransientNote implements IMessageBuilder<
      case "ChatMessage":
      case "http://litepub.social/ns#ChatMessage":
        return new fedify.ChatMessage({
          to: this.toActor,
          to: this.toActor.id!,
          published,
          content: this.message,
        }) as any;
      case "Note":
      case "https://www.w3.org/ns/activitystreams#Note":
        return new fedify.Note({
          to: this.toActor,
          to: this.toActor.id!,
          published,
          content: this.message,
          tags: [