sbkwgh
|
06000b269d
User specific agent which is non-admin
|
8 年 前 |
sbkwgh
|
40f9883401
Merge branch 'lock-thread'
|
8 年 前 |
sbkwgh
|
4e73d4b9ea
Move PUT route below admin route middle-ware so that only admin users can lock threads
|
8 年 前 |
sbkwgh
|
b9313f6547
Fix test where it was not correctly tested if non-admin user could lock threads (admin privillege)
|
8 年 前 |
sbkwgh
|
80864d208f
Implement test, returning an error if trying to reply to removed post
|
8 年 前 |
sbkwgh
|
37b9450206
Add test to return error if trying to reply to a removed post
|
8 年 前 |
sbkwgh
|
4ff67cba08
Add postRemoved error
|
8 年 前 |
sbkwgh
|
f556978dd1
Implement remove post functionality
|
8 年 前 |
sbkwgh
|
d8ded4cfbc
Expect a specific string on a removed post, rather than ust null
|
8 年 前 |
sbkwgh
|
f10ce41912
Remove test for User field being null - as the username that a post is replying to is set manually, this would require manually updating this association, so is currently not implemented
|
8 年 前 |
sbkwgh
|
36485d4523
Add tests for DELETE /post/:id route
|
8 年 前 |
sbkwgh
|
610f3bc0d8
Add admin cookie for ui purposes
|
8 年 前 |
sbkwgh
|
c5e978fcc3
Throw error if thread is locked
|
8 年 前 |
sbkwgh
|
b9cc76a5cd
Add threadLocked error
|
8 年 前 |
sbkwgh
|
007ceb2507
Use own thread for locked tests to make tests more independent
|
8 年 前 |
sbkwgh
|
8e686265c6
Implement locked/unlocked thread route
|
8 年 前 |
sbkwgh
|
c883be1f6b
Fix wrong request agent
|
8 年 前 |
sbkwgh
|
47d97c149a
Add locked field to model
|
8 年 前 |
sbkwgh
|
74ac8b98ca
Add tests for locking the thread
|
8 年 前 |
sbkwgh
|
b4b1c2340d
Update test
|
8 年 前 |
sbkwgh
|
fc16b8257a
Remove duplicate mentions
|
8 年 前 |
sbkwgh
|
3c759d58f7
Fix wrong post object being sent
|
8 年 前 |
sbkwgh
|
baf07a754a
Use single post notification model for both mentions and reply notifications
|
8 年 前 |
sbkwgh
|
ca5de5140f
Move event listener position - n.b. this still doesn't work but getting closer
|
8 年 前 |
sbkwgh
|
153432a8f3
Add socketio test
|
8 年 前 |
sbkwgh
|
b5f4162c74
Reload notification returned from class method
|
8 年 前 |
sbkwgh
|
6e340a0266
Order by id descending
|
8 年 前 |
sbkwgh
|
e8c194d047
Emit socketio event to user when new notification
|
8 年 前 |
sbkwgh
|
b3254169b4
If user is logged in, add there socket-io client id to a dictionary of username=>client_id
|
8 年 前 |
sbkwgh
|
6855ff4661
Add express socket-io package to connect express session with socketio session
|
8 年 前 |