Commit 940eaead authored by les's avatar les
Browse files

.

parent 547cf3e8
......@@ -122,7 +122,7 @@ const userController = {
// send response to client
res.json(event)
federation.sendEvent(event, user)
federation.sendEvent(event, req.user)
// send notification (mastodon/email/confirmation)
notifier.notifyEvent(event.id)
......
......@@ -48,7 +48,7 @@ module.exports = (sequelize, DataTypes) => {
published: this.createdAt,
attributedTo: `${config.baseurl}/federation/u/${username}`,
to: 'https://www.w3.org/ns/activitystreams#Public',
cc: [follower],
cc: follower ? follower: [],
content: this.title
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment