sbkwgh
|
79ee339c27
Use DRYer error handling
|
hace 7 años |
sbkwgh
|
ff9ccf98c1
Delete posts (apparently cascade was not working)
|
hace 7 años |
sbkwgh
|
668bfa7841
Remove posts via a scade on thread destroy, remove reports manually because cascade is not working
|
hace 7 años |
sbkwgh
|
eab3158c44
Add delete thread route and corresponding tests
|
hace 7 años |
sbkwgh
|
a614022e88
Move from using params on User instance for permissions to a dedicated Ban model, move methods in permissions.js file to class methods on Ban model
|
hace 8 años |
sbkwgh
|
2483e88858
Implement banned user route, as well as adding if clause on creating thread/post routes
|
hace 8 años |
sbkwgh
|
81dce1a6e7
Remove superfluous async/await keywords
|
hace 8 años |
sbkwgh
|
656f76859b
Use sequelize validations rather than custom ones in router function
|
hace 8 años |
sbkwgh
|
2b464acc37
Use instance field this.Posts instead of passing in posts
|
hace 8 años |
sbkwgh
|
53bfc3e1bd
Move thread meta data logic to instance method
|
hace 8 años |
sbkwgh
|
4e73d4b9ea
Move PUT route below admin route middle-ware so that only admin users can lock threads
|
hace 8 años |
sbkwgh
|
8e686265c6
Implement locked/unlocked thread route
|
hace 8 años |
sbkwgh
|
83de1fcd4e
Add tests so to return error if thread name has no length
|
hace 8 años |
sbkwgh
|
c8b2950bbb
Use specific rooms for socket-io
|
hace 8 años |
sbkwgh
|
514ba58577
Add and implement tests for categories with spaces
|
hace 8 años |
sbkwgh
|
0f065a8477
Fix pagination bug; update tests
|
hace 8 años |
sbkwgh
|
8633a419b6
Add socket.io emitter
|
hace 8 años |
sbkwgh
|
089e2d5189
Implement tests
|
hace 8 años |
sbkwgh
|
b1d6c75965
Implement test
|
hace 8 años |
sbkwgh
|
8d3b208cb0
Use simplified pagination system based on ordinal post number
|
hace 8 años |
sbkwgh
|
aa06e1c531
Allow to paginate from any post and add previousURL field
|
hace 8 años |
sbkwgh
|
758754f5e8
Add previousURL field to find previous 'nextId' for post pagination
|
hace 8 años |
sbkwgh
|
21f8b5a12b
Use re-useable pagination functions
|
hace 8 años |
sbkwgh
|
10b3d6d696
Use different pagination style, add 'meta.nextURL' to response
|
hace 8 años |
sbkwgh
|
9e380e434f
Implement pagination system
|
hace 8 años |
sbkwgh
|
f545ec0a15
Make tests green
|
hace 8 años |
sbkwgh
|
e8e87a462b
Add pagination functionality to thread
|
hace 8 años |
sbkwgh
|
862541b2eb
Use single association and add replyingToUsername field
|
hace 8 años |
sbkwgh
|
bc86d371e8
Add GET /:thread_id route
|
hace 8 años |
sbkwgh
|
5d1480a201
Use if/else instead of switch; 'reload' thread instance to get associated objects; fix bugs/typos
|
hace 8 años |