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:
parent
594d0c6a7c
commit
5b9c965d5a
19 changed files with 196 additions and 55 deletions
|
@ -279,6 +279,11 @@ function customConfig (): CustomConfig {
|
|||
enabled: CONFIG.AUTO_BLACKLIST.VIDEOS.OF_USERS.ENABLED
|
||||
}
|
||||
}
|
||||
},
|
||||
followers: {
|
||||
instance: {
|
||||
enabled: CONFIG.FOLLOWERS.INSTANCE.ENABLED
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue