Commit Graph

49 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
0189945996 refactor: remove util.promisify calls 2020-08-14 00:05:03 -04:00
Barış Soner Uşaklı
4eae927d14 feat: remove deprecated hooks 2020-07-24 10:39:51 -04:00
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
Barış Soner Uşaklı
7f24200c73 feat: add folder to filter:uploadImage and filter:uploadFile 2020-05-22 10:00:24 -04:00
Barış Soner Uşaklı
c5ffd8cc74 refactor: async/await image.js 2019-10-02 18:50:03 -04: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ı
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ı
157b921e14 fix: #7634, make strip exif configurable 2019-05-23 20:38:49 -04:00
Baris Usakli
c9ca72d0f3 fix: #7582 2019-05-09 12:00:46 -04:00
Barış Soner Uşaklı
5eaa14e746 fix: strip exif data on image uploads 2019-03-06 16:36:02 -05:00
Barış Soner Uşaklı
7e828404f6 fix: #7116
dont save relative_path in db for group covers
2018-12-18 19:43:28 -05:00
Barış Soner Uşaklı
a73bcabad8 don't call .jpeg quality on pngs 2018-10-24 10:03:00 -04:00
Barış Soner Uşaklı
9c022afae1 Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
2018-10-21 16:47:51 -04:00
Barış Soner Uşaklı
13a1497617 closes #6801 2018-10-04 11:38:42 -04:00
Barış Soner Uşaklı
71ccd67665 closes #6722
calculate size of base64 image from buffer, still not perfect but better than string.length
2018-09-20 19:47:44 -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
Barış Soner Uşaklı
75e2ab8957 remove unnecessary code 2018-03-21 10:09:09 -04:00
Barış Soner Uşaklı
dcb6af5768 closes #6373 2018-03-19 16:24:22 -04: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
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
manolino
9cb098bb0b Implements Jimp exitRotate() new method (jimp 0.2.28) to sove incoherent rotations when scaling images. 2017-08-28 14:34:42 -04:00
Baris Usakli
11d9410229 fix test and image normalize test 2017-05-26 16:37:31 -04:00
Peter Jaszkowiak
dd2b930824 Resolve merge conflicts, minify only .js files 2017-02-23 18:31:49 -07:00
barisusakli
ef90702049 closes #5459 2017-02-20 21:28:02 +03:00
Peter Jaszkowiak
a5a3f3089a ESlint no-mixed-operators 2017-02-18 01:51:11 -07:00
Peter Jaszkowiak
2ba46808a1 ESlint one-var, fix comma-dangle 2017-02-17 20:20:42 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
Peter Jaszkowiak
d31499a860 Fix tests rewriting logo.png 2017-02-03 18:29:09 -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
4aac8bbe6a closes #2222 2016-08-30 13:10:52 +03:00
barisusakli
acc030e6da added filter:image.size
fix uploading of gifs if imagemagick plugin is installed but no image
upload plugins are present.
2016-05-09 22:25:56 +03:00
barisusakli
fea18a050f closes #4590 2016-05-01 12:44:43 +03:00
Julian Lam
5858d914bf closes #4550 2016-04-20 13:58:31 -04:00
barisusakli
96a3db6365 only send back err 2016-03-09 14:19:49 +02:00
Julian Lam
ebed9d641c Add new ACP option to upload Touch Icon, #3668
Also added a number of fixes for mobile enhancements, such
as serving a manifest.json file for Android devices, and
serving proper link tags for all uploaded touch icons.

This commit also creates a new template helper for link tags.
2015-09-24 12:05:45 -04:00
Julian Lam
bac04d7ee6 Replace lwip library with jimp native lib for image manipulation 2015-09-21 15:36:26 -04:00
barisusakli
a14810a2e0 wrap lwip.open in try catch, it throws on unknow types, closes #3632 2015-09-18 09:42:09 -04:00
barisusakli
830d27caef dont ignore error 2015-08-18 15:17:07 -04:00
Julian Lam
e523ef7c17 added plugin hooks so that imagemagick can still be called, as a plugin, for image manipulation tasks, falling back to using lwip 2015-06-04 12:32:39 -04:00
Alpacatty
37ad81a2b0 Swap out ImageMagick for lwip 2015-05-30 20:04:42 +02:00
barisusakli
4e4a583d9d took out the meta config check from image.js 2014-08-08 17:30:37 -04:00
Julian Lam
4e0ccbf0c6 fixed #1515 2014-05-10 23:56:45 -04:00
barisusakli
8ce3e44d7b closes #1418 2014-04-27 17:40:39 -04:00
Micheil Smith
3e82cab398 Add missing new lines at end of files. 2014-04-10 20:56:53 +01:00
barisusakli
6774f0f52f fit image to 128x128 and keep aspect ratio, closes #1240 2014-03-18 14:27:00 -04:00
Baris Soner Usakli
096f352c82 closes #1130 2014-03-05 23:00:27 -05:00
Baris Soner Usakli
5aed1208c0 lol this was saving to 'uploadPath' 2014-02-20 21:26:05 -05:00
Baris Soner Usakli
20ec8ca768 added image file 2014-02-09 00:34:05 -05:00