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:
parent
f289111f6d
commit
27b8bad664
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue