1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Add ability to forbid followers

This commit is contained in:
Chocobozzz 2019-04-08 14:04:57 +02:00
parent 594d0c6a7c
commit 5b9c965d5a
No known key found for this signature in database
GPG key ID: 583A612D890159BE
19 changed files with 196 additions and 55 deletions

View file

@ -279,6 +279,11 @@ function customConfig (): CustomConfig {
enabled: CONFIG.AUTO_BLACKLIST.VIDEOS.OF_USERS.ENABLED
}
}
},
followers: {
instance: {
enabled: CONFIG.FOLLOWERS.INSTANCE.ENABLED
}
}
}
}

View file

@ -139,7 +139,7 @@ async function removeFollowing (req: express.Request, res: express.Response) {
async function removeFollower (req: express.Request, res: express.Response) {
const follow = res.locals.follow
await sendReject(follow)
await sendReject(follow.ActorFollower, follow.ActorFollowing)
await follow.destroy()