Commit 948e34ef authored by les's avatar les
Browse files

minor

parent 5d864ff8
......@@ -5,7 +5,7 @@ const { user: User } = require('../api/models')
module.exports = {
// follow request from fediverse
async follow (req, res, body, targetOrigin, domain) {
if (typeof b.object !== 'string') return
if (typeof body.object !== 'string') return
const username = body.object.replace(`${config.baseurl}/federation/u/`, '')
console.error('someone wants to follow ' + username)
const user = await User.findOne({ where: { username }})
......@@ -25,4 +25,4 @@ module.exports = {
unfollow () {
console.error('inside unfollow')
}
}
\ No newline at end of file
}
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