Skip to content

Commit

Permalink
Merge pull request #25 from callmeehko/main
Browse files Browse the repository at this point in the history
bot post enabling
  • Loading branch information
SupertigerDev authored Feb 1, 2025
2 parents b183f89 + c07a55a commit b8c2e3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/routes/posts/postCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { hasBit, USER_BADGES } from '../../common/Bitwise';
export function postCreate(Router: Router) {
Router.post(
'/posts',
authenticate(),
authenticate({ allowBot: true }),
rateLimit({
name: 'create_post',
restrictMS: 180000,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/posts/postDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { deletePost } from '../../services/Post';
export function postDelete(Router: Router) {
Router.delete(
'/posts/:postId',
authenticate(),
authenticate({ allowBot: true }),
param('postId')
.isString()
.withMessage('postId must be a string!')
Expand Down
2 changes: 1 addition & 1 deletion src/routes/posts/postEdit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { hasBit, USER_BADGES } from '../../common/Bitwise';
export function postEdit(Router: Router) {
Router.patch(
'/posts/:postId',
authenticate(),
authenticate({ allowBot: true }),
rateLimit({
name: 'edit_post',
restrictMS: 20000,
Expand Down

0 comments on commit b8c2e3b

Please sign in to comment.