.
This commit is contained in:
@@ -122,7 +122,7 @@ const userController = {
|
|||||||
// send response to client
|
// send response to client
|
||||||
res.json(event)
|
res.json(event)
|
||||||
|
|
||||||
federation.sendEvent(event, user)
|
federation.sendEvent(event, req.user)
|
||||||
|
|
||||||
// send notification (mastodon/email/confirmation)
|
// send notification (mastodon/email/confirmation)
|
||||||
notifier.notifyEvent(event.id)
|
notifier.notifyEvent(event.id)
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ module.exports = (sequelize, DataTypes) => {
|
|||||||
published: this.createdAt,
|
published: this.createdAt,
|
||||||
attributedTo: `${config.baseurl}/federation/u/${username}`,
|
attributedTo: `${config.baseurl}/federation/u/${username}`,
|
||||||
to: 'https://www.w3.org/ns/activitystreams#Public',
|
to: 'https://www.w3.org/ns/activitystreams#Public',
|
||||||
cc: [follower],
|
cc: follower ? follower: [],
|
||||||
content: this.title
|
content: this.title
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user