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
2020-06-22 12:08:35 -04:00
Baris Usakli
87225a90c3
fix : #8134 , upgrade mkdirp to 1.0.x
2020-01-31 14:10:00 -05:00
Barış Soner Uşaklı
ffe3670ff5
feat: deprecate file.isFileTypeAllowed
...
use image.isFileTypeAllowed, this function was always meant for images
2019-09-29 19:53:03 -04:00
Barış Soner Uşaklı
b842057f26
refactor: remove temp var
2019-09-23 22:31:55 -04:00
Barış Soner Uşaklı
f9d6912b4a
refactor: async/await file
2019-09-23 22:30:17 -04:00
Barış Soner Uşaklı
f5f5f76b12
feat: #7743 plugins/data
2019-07-21 22:40:00 -04:00
Barış Soner Uşaklı
805dcd7ca2
Async refactor in place ( #7736 )
...
* feat: allow both callback&and await
* feat: ignore async key
* feat: callbackify and promisify in same file
* Revert "feat: callbackify and promisify in same file"
This reverts commit cea206a9b8 .
* feat: no need to store .callbackify
* feat: change getTopics to async
* feat: remove .async
* fix: byScore
* feat: rewrite topics/index and social with async/await
* fix: rewrite topics/data.js
fix issue with async.waterfall, only pass result if its not undefined
* feat: add callbackify to redis/psql
* feat: psql use await
* fix: redis 🌋
* feat: less returns
* feat: more await rewrite
* fix: redis tests
* feat: convert sortedSetAdd
rewrite psql transaction to async/await
* feat: 🐶
* feat: test
* feat: log client and query
* feat: log bind
* feat: more logs
* feat: more logs
* feat: check perform
* feat: dont callbackify transaction
* feat: remove logs
* fix: main functions
* feat: more logs
* fix: increment
* fix: rename
* feat: remove cls
* fix: remove console.log
* feat: add deprecation message to .async usage
* feat: update more dbal methods
* fix: redis :voodoo:
* feat: fix redis zrem, convert setObject
* feat: upgrade getObject methods
* fix: psql getObjectField
* fix: redis tests
* feat: getObjectKeys
* feat: getObjectValues
* feat: isObjectField
* fix: add missing return
* feat: delObjectField
* feat: incrObjectField
* fix: add missing await
* feat: remove exposed helpers
* feat: list methods
* feat: flush/empty
* feat: delete
* fix: redis delete all
* feat: get/set
* feat: incr/rename
* feat: type
* feat: expire
* feat: setAdd
* feat: setRemove
* feat: isSetMember
* feat: getSetMembers
* feat: setCount, setRemoveRandom
* feat: zcard,zcount
* feat: sortedSetRank
* feat: isSortedSetMember
* feat: zincrby
* feat: sortedSetLex
* feat: processSortedSet
* fix: add mising await
* feat: debug psql
* fix: psql test
* fix: test
* fix: another test
* fix: test fix
* fix: psql tests
* feat: remove logs
* feat: user arrow func
use builtin async promises
* feat: topic bookmarks
* feat: topic.delete
* feat: topic.restore
* feat: topics.purge
* feat: merge
* feat: suggested
* feat: topics/user.js
* feat: topics modules
* feat: topics/follow
* fix: deprecation msg
* feat: fork
* feat: topics/posts
* feat: sorted/recent
* feat: topic/teaser
* feat: topics/tools
* feat: topics/unread
* feat: add back node versions
disable deprecation notice
wrap async controllers in try/catch
* feat: use db directly
* feat: promisify in place
* fix: redis/psql
* feat: deprecation message
logs for psql
* feat: more logs
* feat: more logs
* feat: logs again
* feat: more logs
* fix: call release
* feat: restore travis, remove logs
* fix: loops
* feat: remove .async. usage
2019-07-09 12:46:49 -04:00
Barış Soner Uşaklı
26d4e0852f
use includes instead of indexOf
...
use _.uniq instead of filter&indexOf
2018-10-20 14:40:48 -04:00
Julian Lam
f95308bf33
move sharp require into the method it is used in src/file.js
2018-09-28 15:23:56 -04:00
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
2018-09-20 17:05:52 -04:00
Julian Lam
1f8b4bf820
closes #6576
2018-06-15 11:33:59 -04:00
Barış Soner Uşaklı
5d2a7106f6
change upload storage
2018-04-12 12:35:05 -04:00
Barış Soner Uşaklı
b35bfb81ce
ability to delete uploads from account page #6431
2018-04-09 20:03:33 -04:00
Barış Soner Uşaklı
04979f86a8
delete users uploads on account delete
...
store uid:<uid>:uploads
2018-04-06 15:16:28 -04:00
Barış Soner Uşaklı
c7506d77b0
closes #6247
2018-01-26 18:56:17 -05:00
Peter Jaszkowiak
c47c47f7e3
Use less memory to build translation files ( #6070 )
...
* Change languages build to use less memory
Add graceful-fs so no ned to worry about fs limits
* Specify encoding for fs.readFile
Use eachLimit since graceful-fs handles that now
2017-11-16 17:43:52 -05:00
Peter Jaszkowiak
adc47fd053
Use relative linking ( #6011 )
...
* Use relative linking
* Add copyFile method and tests
Closes #5988
* Fix relative linking on Windows
Hard links and junctions don't work with relative paths
* Fix tests
* Revert ghange to gitignore
2017-10-31 22:18:15 -04:00
Julian Lam
103d9a91a9
Revert "sanitizing uploaded filename without using slugify, in composer, re comment in: #6011 "
...
This reverts commit 9f670fe586 .
2017-10-30 14:45:41 -04:00
Julian Lam
9f670fe586
sanitizing uploaded filename without using slugify, in composer, re comment in: #6011
2017-10-30 11:02:26 -04:00
Peter Jaszkowiak
da9da8190f
Bump dependencies
...
Bumping eslint & configs meant making some linting fixes
For future reference, the `xmlhttprequest-ssl` library must be of equal versioning to the one in `engine.io-client`, otherwise it won't be deduped which causes the socket.io tests to fail
2017-10-02 09:24:27 -04:00
Barış Soner Uşaklı
c9d502320f
file.delete method
2017-05-24 00:02:30 -04:00
Barış Soner Uşaklı
29135dfed3
timeago locale test
2017-05-23 23:32:38 -04:00
Barış Soner Uşaklı
13a04123e0
closes #5641
2017-05-01 20:58:34 -04:00
Julian Lam
d18cfced96
Merge remote-tracking branch 'origin/master' into develop
2017-04-12 23:57:14 -04:00
Peter Jaszkowiak
1ed571189c
Make utils and translator easier to require
...
Move utils.walk to file.walk, backwards compatible
2017-04-08 20:27:52 -06:00
Julian Lam
6e7b505ea7
more linting
2017-02-24 12:55:31 -05:00
Julian Lam
72e77772db
Merge branch 'master' into develop
2017-02-24 12:46:40 -05:00
Julian Lam
62e0f5f883
Merge remote-tracking branch 'origin/master' into develop
2017-02-21 11:21:51 -05:00
Peter Jaszkowiak
23540afaeb
Resolve merge conflicts
2017-02-18 19:14:39 -07:00
Peter Jaszkowiak
a038c66549
ESlint quotes
2017-02-18 01:56:23 -07:00
Peter Jaszkowiak
604358ecc4
ESlint keyword-spacing, no-multi-spaces
2017-02-18 01:52:56 -07:00
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
2017-02-17 19:31:21 -07:00
pichalite
8dab8864f6
Add extensions for cropped images
2017-02-17 19:42:02 +00:00
Julian Lam
7f124a3ccf
Merge branch 'master' into develop
2017-02-10 12:55:11 -05:00
Peter Jaszkowiak
aaacdb8413
Fix #5416 , uploads path config setting
...
- Finish moving uploads route to `/assets/uploads`
- Remove `upload_url` config setting, it was broken
2017-02-08 11:41:34 -07:00
Julian Lam
8a0a74d95e
Merge remote-tracking branch 'origin/master' into develop
2017-02-07 16:03:54 -05:00
Peter Jaszkowiak
186209a0a3
Build plugin staticDirs
...
- route `/plugins` -> `build/public/plugins`
- symlink `staticDirs` directories into `build/public/plugins`
- remove custom `/plugins` route handling
2017-01-21 18:57:27 -07:00
Peter Jaszkowiak
8c86b2e32c
Build pipeline improvements
...
- Refactor meta/css
- `fs.link` usage consolidated to `file.link`
- rimraf built modules directory to fix error
- Remove `local-assets` flag
2017-01-15 12:38:16 -07:00
Peter Jaszkowiak
ec544518e8
Use async v2
2017-01-02 22:23:17 -07:00
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
2016-10-13 11:43:39 +02:00
HeeL
3fa1c1f927
Fix space-infix-ops linter rule
2016-10-13 11:42:29 +02:00
barisusakli
a0ef96a6e1
dont treat url as path, closes #5006
2016-09-02 19:01:46 +03:00
barisusakli
aac0313f2e
closes #4917
2016-08-08 13:21:05 +03:00
Ben Lubar
f5009b1a11
add a hook for plugins like nodebb-plugin-imagemagick that don't want to replace the entire upload system
2016-04-21 14:09:10 -05:00
barisusakli
c50d655922
closes #4325
2016-03-08 19:01:45 +02:00
Julian Lam
3a6ad52ac8
closes #4164
2016-02-09 09:45:16 -05:00
Julian Lam
95fb0075c6
re-added missing base64ToLocal method in file lib
2016-02-04 10:13:05 -05:00
barisusakli
99d64db9e0
closes #4011
...
allow both `.png` and `png`
2015-12-28 15:38:02 +02:00
Julian Lam
96afd13155
Removed mmmagic from dependencies, closes #3836
2015-11-09 15:32:04 -05:00
Julian Lam
051a8e22df
Removed allowedFileExtensions meta config
...
Now, when NodeBB needs to determine file compatibility, jimp
will attempt to open the file for reading. If it fails, file is
considered to be of an invalid type.
2015-11-09 14:39:00 -05:00