aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/follows.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators/follows.ts')
-rw-r--r--server/middlewares/validators/follows.ts10
1 files changed, 0 insertions, 10 deletions
diff --git a/server/middlewares/validators/follows.ts b/server/middlewares/validators/follows.ts
index 639c60c03..be98a4c04 100644
--- a/server/middlewares/validators/follows.ts
+++ b/server/middlewares/validators/follows.ts
@@ -50,8 +50,6 @@ const followValidator = [
50 }) 50 })
51 } 51 }
52 52
53 logger.debug('Checking follow parameters', { parameters: req.body })
54
55 if (areValidationErrors(req, res)) return 53 if (areValidationErrors(req, res)) return
56 54
57 const body: ServerFollowCreate = req.body 55 const body: ServerFollowCreate = req.body
@@ -73,8 +71,6 @@ const removeFollowingValidator = [
73 .custom(value => isHostValid(value) || isRemoteHandleValid(value)), 71 .custom(value => isHostValid(value) || isRemoteHandleValid(value)),
74 72
75 async (req: express.Request, res: express.Response, next: express.NextFunction) => { 73 async (req: express.Request, res: express.Response, next: express.NextFunction) => {
76 logger.debug('Checking unfollowing parameters', { parameters: req.params })
77
78 if (areValidationErrors(req, res)) return 74 if (areValidationErrors(req, res)) return
79 75
80 const serverActor = await getServerActor() 76 const serverActor = await getServerActor()
@@ -103,8 +99,6 @@ const getFollowerValidator = [
103 .custom(isValidActorHandle), 99 .custom(isValidActorHandle),
104 100
105 async (req: express.Request, res: express.Response, next: express.NextFunction) => { 101 async (req: express.Request, res: express.Response, next: express.NextFunction) => {
106 logger.debug('Checking get follower parameters', { parameters: req.params })
107
108 if (areValidationErrors(req, res)) return 102 if (areValidationErrors(req, res)) return
109 103
110 let follow: MActorFollowActorsDefault 104 let follow: MActorFollowActorsDefault
@@ -132,8 +126,6 @@ const getFollowerValidator = [
132 126
133const acceptFollowerValidator = [ 127const acceptFollowerValidator = [
134 (req: express.Request, res: express.Response, next: express.NextFunction) => { 128 (req: express.Request, res: express.Response, next: express.NextFunction) => {
135 logger.debug('Checking accept follower parameters', { parameters: req.params })
136
137 const follow = res.locals.follow 129 const follow = res.locals.follow
138 if (follow.state !== 'pending' && follow.state !== 'rejected') { 130 if (follow.state !== 'pending' && follow.state !== 'rejected') {
139 return res.fail({ message: 'Follow is not in pending/rejected state.' }) 131 return res.fail({ message: 'Follow is not in pending/rejected state.' })
@@ -145,8 +137,6 @@ const acceptFollowerValidator = [
145 137
146const rejectFollowerValidator = [ 138const rejectFollowerValidator = [
147 (req: express.Request, res: express.Response, next: express.NextFunction) => { 139 (req: express.Request, res: express.Response, next: express.NextFunction) => {
148 logger.debug('Checking reject follower parameters', { parameters: req.params })
149
150 const follow = res.locals.follow 140 const follow = res.locals.follow
151 if (follow.state !== 'pending' && follow.state !== 'accepted') { 141 if (follow.state !== 'pending' && follow.state !== 'accepted') {
152 return res.fail({ message: 'Follow is not in pending/accepted state.' }) 142 return res.fail({ message: 'Follow is not in pending/accepted state.' })