This commit is contained in:
Madeline
2023-08-14 21:05:20 +10:00
parent cd9bcd53be
commit 4b144365cd
2 changed files with 3 additions and 3 deletions
@@ -21,7 +21,7 @@ router.get("/", route({}), async (req: Request, res: Response) => {
type: "Announce",
actor: `https://${webDomain}/fed/user/${message.author_id}`,
published: message.timestamp,
to: `https://${webDomain}/fed/channel/${message.channel_id}/followers`,
to: ["https://www.w3.org/ns/activitystreams#Public"], // TODO
object: message.toAP(),
};
+2 -2
View File
@@ -251,7 +251,7 @@ export class Message extends BaseClass {
type: "Announce",
actor: `https://${webDomain}/fed/user/${this.author_id}`,
published: this.timestamp,
to: `https://${webDomain}/fed/channel/${this.channel_id}`,
to: ["https://www.w3.org/ns/activitystreams#Public"],
object: this.toAP(),
};
}
@@ -265,7 +265,7 @@ export class Message extends BaseClass {
published: this.timestamp,
url: `https://${webDomain}/fed/messages/${this.id}`,
attributedTo: `https://${webDomain}/fed/user/${this.author_id}`,
to: `https://${webDomain}/fed/channel/${this.channel_id}/followers`,
to: ["https://www.w3.org/ns/activitystreams#Public"],
content: this.content,
};
}