Loading backend/src/lib/apub/utils.ts +6 −2 Original line number Diff line number Diff line Loading @@ -215,6 +215,7 @@ export class APub { id: new URL("#create", this.ctx.getObjectUri(ChatMessage, { id })), actor: sender, to: target, published: content.published, object: content, }), { fanout: "skip" } Loading Loading @@ -251,6 +252,7 @@ export class APub { id: new URL("#create", this.ctx.getObjectUri(Note, { id })), actor: sender, to: target, published: content.published, object: content, }), { fanout: "skip" } Loading Loading @@ -283,6 +285,7 @@ export class APub { const sender = this.ctx.getActorUri(USER_IDENTIFIER); const content = { mediaType: "text/html", content: `Code: ${one_time_code} Do not share this code. This code is used to identify you.`, Loading @@ -293,7 +296,7 @@ Do not share this code. This code is used to identify you.`, return new ChatMessage({ id: this.ctx.getObjectUri(ChatMessage, { id }), attribution: sender, to: target.id, to: target, published: Temporal.Instant.from(createdAt.toISOString()), ...content, }); Loading @@ -301,8 +304,9 @@ Do not share this code. This code is used to identify you.`, return new Note({ id: this.ctx.getObjectUri(Note, { id }), attribution: sender, to: target.id, to: target, published: Temporal.Instant.from(createdAt.toISOString()), summary: null, tags: [ new Mention({ href: target.id, Loading Loading
backend/src/lib/apub/utils.ts +6 −2 Original line number Diff line number Diff line Loading @@ -215,6 +215,7 @@ export class APub { id: new URL("#create", this.ctx.getObjectUri(ChatMessage, { id })), actor: sender, to: target, published: content.published, object: content, }), { fanout: "skip" } Loading Loading @@ -251,6 +252,7 @@ export class APub { id: new URL("#create", this.ctx.getObjectUri(Note, { id })), actor: sender, to: target, published: content.published, object: content, }), { fanout: "skip" } Loading Loading @@ -283,6 +285,7 @@ export class APub { const sender = this.ctx.getActorUri(USER_IDENTIFIER); const content = { mediaType: "text/html", content: `Code: ${one_time_code} Do not share this code. This code is used to identify you.`, Loading @@ -293,7 +296,7 @@ Do not share this code. This code is used to identify you.`, return new ChatMessage({ id: this.ctx.getObjectUri(ChatMessage, { id }), attribution: sender, to: target.id, to: target, published: Temporal.Instant.from(createdAt.toISOString()), ...content, }); Loading @@ -301,8 +304,9 @@ Do not share this code. This code is used to identify you.`, return new Note({ id: this.ctx.getObjectUri(Note, { id }), attribution: sender, to: target.id, to: target, published: Temporal.Instant.from(createdAt.toISOString()), summary: null, tags: [ new Mention({ href: target.id, Loading