0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Used Followers Collection to address Create Activitites

ref https://linear.app/tryghost/issue/MOM-126

This is the first step of handling delivery of Activities to our Followers as
we can dereference the Collection and get a list of all our Followers Inboxes
This commit is contained in:
Fabien O'Carroll 2024-05-15 16:08:22 +07:00 committed by Fabien 'egg' O'Carroll
parent f289111f6d
commit 27b8bad664

View file

@ -148,7 +148,7 @@ export class Actor extends Entity<ActorData> {
createArticle(article: Article) { createArticle(article: Article) {
const activity = new Activity({ const activity = new Activity({
activity: new URI(`activity/${new ObjectID().toHexString()}`), activity: new URI(`activity/${new ObjectID().toHexString()}`),
to: new URI(`https://www.w3.org/ns/activitystreams#Public`), to: this.followersCollectionId,
type: 'Create', type: 'Create',
actor: this.actorId, actor: this.actorId,
object: {id: article.objectId} object: {id: article.objectId}