Julian Lam
22368b996e
refactor: move orphan cleaning logic to its own method, added tests for getOrphans and cleanOrphans
3 years ago
Barış Soner Uşaklı
424db9ff37
fix: upload test for latest sharp
3 years ago
Julian Lam
b9edee143e
fix: local deleteUploads() method in `src/user/delete.js` to call `User.deleteUpload()`
3 years ago
Barış Soner Uşaklı
fa1ac04dc6
lint: fix
3 years ago
Barış Soner Uşaklı
c5f08fdc81
breaking: remove socket.io/flags.js
...
refactor: helpers.loginUser returns a single object {jar, csrf_token}
3 years ago
Barış Soner Uşaklı
fb363957d1
refactor: tab rules
3 years ago
Peter Jaszkowiak
ff84d6c52f
Add more chat hooks, replace toobig.jpg ( #9843 )
...
* feat: more hooks for messaging
for use in global chat plugin
* fix: replace toobig.jpg
toobig.png is a real 10000x10000 image
3 years ago
gasoved
3df79683f5
feat: create folders in ACP uploads #9638 ( #9750 )
...
* feat: create folders in ACP uploads #9638
* fix: openapi
* test: missing tests
* fix: eslint
* fix: tests
3 years ago
Barış Soner Uşaklı
435067aa5f
test: remove logs
4 years ago
Barış Soner Uşaklı
2ea468daa3
test: clear cache between runs, require middleware later in helpers
4 years ago
Barış Soner Uşaklı
2f401d7d74
test: test times
4 years ago
psychobunny
4dd3844680
fix: logic is hard
4 years ago
psychobunny
bc0ca61c6a
fix: run in series
4 years ago
Barış Soner Uşaklı
80ef108220
test: log
4 years ago
psychobunny
13fa983e61
fix: accidentally committed this
4 years ago
psychobunny
eb240c905f
fix: tests
4 years ago
psychobunny
ea22cd302a
fix: use req.ip instead, since guests can upload as well
4 years ago
psychobunny
a9978fcfd2
feat: rate limit file uploads
4 years ago
Barış Soner Uşaklı
f7f46e7c65
feat: upgrade sharp ( #9442 )
4 years ago
Peter Jaszkowiak
cc9d6fd08b
chore: eslint max-len
4 years ago
Peter Jaszkowiak
dab3b23575
chore: eslint no-var, vars-on-top
4 years ago
Peter Jaszkowiak
b56d9e12b5
chore: eslint prefer-arrow-callback
4 years ago
Peter Jaszkowiak
707b55b6a5
chore: eslint prefer-template
4 years ago
Julian Lam
5ec3b3d083
fix: tests
4 years ago
Barış Soner Uşaklı
5f10d67db5
Remove sounds ( #8617 )
...
* feat: remove sounds
* feat: remove more sounds
* feat: disable sounds plugin
* fix: openapi
4 years ago
Barış Soner Uşaklı
2cdb935f1d
feat: remove file.isFileTypeAllowed
5 years ago
Barış Soner Uşaklı
48b41debe6
fix: vulnerability in cover and admin uploads ( #8419 )
...
* fix: vulnerability in cover and admin uploads
* fix: remove old test
* fix: update tests
5 years ago
Barış Soner Uşaklı
ec5582b53c
feat: add privilege give/rescind hooks ( #8336 )
...
* feat: add privilege give/rescind hooks
action:privileges.categories.give/rescind
action:privileges.global.give/rescind
breaking change, privileges.categories.give/rescind and privileges.global.give/rescind use full privilege name for groups ie `groups:find` instead of `find`
* fix: tests, privileges renamed
5 years ago
Julian Lam
6f504c4142
Remove allowFileUploads ACP option ( #8324 )
...
* feat: allow awaitable upgrade scripts
* feat: allowFileUploads removal upgrade script
* refactor: remove unnecessary ACP option `allowFileUploads`
* fix: updated upgrade script template to not use callback arg
* fix: upgrade script as per @baris
* fix: add missing await
* fix: add missing await
5 years ago
Julian Lam
6edf02d4a5
fix: remove upload picture test (avatars)
5 years ago
Barış Soner Uşaklı
8c6a7954cf
fix: delete upload
5 years ago
Barış Soner Uşaklı
ffe3670ff5
feat: deprecate file.isFileTypeAllowed
...
use image.isFileTypeAllowed, this function was always meant for images
5 years ago
Barış Soner Uşaklı
96ab8d05aa
fix: only allow png/jpg/bmp in cover/profile images
5 years ago
renovate[bot]
8a64667ff8
fix(deps): update dependency sharp to v0.21.3 ( #7267 )
...
* fix(deps): update dependency sharp to v0.21.3
* fix: tests for new sharp version errors
6 years ago
Barış Soner Uşaklı
1f918ca8f8
Home route ( #7039 )
...
* fix: WIP home fix
* remove console.log
* fix : #6949
on redis run all tests in subfolder /forum
fix URI errors
fix sping/ping
6 years ago
Barış Soner Uşaklı
9c03881d5a
add threshold for image resizing
6 years ago
Barış Soner Uşaklı
1bea247748
add username/email to user-delete event
6 years ago
Barış Soner Uşaklı
59b988a205
change test so it checks url
6 years ago
Barış Soner Uşaklı
b7ead6dc9c
Replace jimp with sharp ( #6774 )
...
* add probe image size and max image size
* replace jimp and image-probe with sharp
* better name for test
* resize with just path
* resize thumb inplace
* use filename
6 years ago
Barış Soner Uşaklı
229e49cf8f
closes #6523 , closes #6524
7 years ago
Barış Soner Uşaklı
04979f86a8
delete users uploads on account delete
...
store uid:<uid>:uploads
7 years ago
Baris Usakli
9b78b95c47
fix tests
7 years ago
Barış Soner Uşaklı
ff6c6a54c1
make upload permissions global
...
give upload image permission to registered users on install
add global privileges to app.user.privileges for client side use
7 years ago
Barış Soner Uşaklı
18f4f27fe0
closes #6024
7 years ago
Barış Soner Uşaklı
5d45f9fff2
fix lint
7 years ago
Barış Soner Uşaklı
6a2019c646
closes #6003
7 years ago
Marc-Aurèle DARCHE
6248e5562f
Fix /apple-touch-icon not sending uploaded file
...
This fixes the following error:
$ wget https://nodebb.yourdomain/apple-touch-icon
28/6 09:57:06 [28332] - error: /apple-touch-icon
Error: ENOENT: no such file or directory, stat '/home/sweet/nodebb/public/assets/uploads/system/touchicon-orig.png'
at Error (native)
8 years ago
Barış Soner Uşaklı
4f31dec82c
reduce usage of io.emit in tests
8 years ago
Peter Jaszkowiak
b171f3072b
Fix many "duplicate key" errors
...
- Reset defaults after every test
- Remove individual `after(db.emptydb)` calls
- Fix async.every in groups test
- Update plugin list in socket tests
8 years ago
Barış Soner Uşaklı
73f31640d7
more tests
8 years ago