A modified version of Wafrn used on https://wf.jbc.lol (mirror of https://git.jbc.lol/jbcrn/wf.jbc.lol which is a mirror of https://codeberg.org/jbcarreon123/wf.jbc.lol)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Added a safeguard to avoid admins nuking the admin bsky account

+7 -1
+7 -1
packages/backend/routes/users.ts
··· 1159 1159 }) 1160 1160 } 1161 1161 1162 + if(user && user.url === completeEnvironment.adminUser) { 1163 + return res.status(500).send({ 1164 + error: true, 1165 + message: `The main admin account is required and nuking its bluesky account will destroy this wafrn instance` 1166 + }) 1167 + } 1168 + 1162 1169 if (!user) { 1163 1170 return res.status(404).send({ 1164 1171 error: true, ··· 1213 1220 message: `This instance does not have bluesky enabled at this moment` 1214 1221 }) 1215 1222 } 1216 - 1217 1223 const userId = req.jwtData?.userId as string 1218 1224 const user = await User.scope('full').findByPk(userId) 1219 1225 const bskyUrl = req.body.url