55 Commits (0a690c571009c23c30e444b9a6cc672f8ee08283)

Author SHA1 Message Date
Barış Soner Uşaklı 7e828404f6 fix: #7116
dont save relative_path in db for group covers
6 years ago
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
6 years ago
Barış Soner Uşaklı 71ccd67665 closes #6722
calculate size of base64 image from buffer, still not perfect but better than string.length
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
Julian Lam 88b47f357b removed user.uploadFromUrl and associated logic as cropped image modal supercedes it @pichalite 7 years ago
Barış Soner Uşaklı 108c3c980a show invalid url error if request.head fails 7 years ago
Julian Lam bc6364f4c0 fixed #6082 7 years ago
Barış Soner Uşaklı 18f4f27fe0 closes #6024 7 years ago
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
7 years ago
Barış Soner Uşaklı f6ac92111b style changes 8 years ago
Barış Soner Uşaklı c9d502320f file.delete method 8 years ago
barisusakli 33e8ecc1f4 closes #5404 8 years ago
Peter Jaszkowiak 8f8babf90b Fix tests 8 years ago
Peter Jaszkowiak 8c45411ccc Fix #5491 8 years ago
barisusakli 531df7bd09 closes #5504 8 years ago
Peter Jaszkowiak dd2b930824 Resolve merge conflicts, minify only `.js` files 8 years ago
barisusakli ef90702049 closes #5459 8 years ago
Peter Jaszkowiak 23540afaeb Resolve merge conflicts 8 years ago
Peter Jaszkowiak 57f89663aa ESlint radix 8 years ago
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing 8 years ago
barisusakli b33d34f7cf refactor user/picture.js 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak 277a7fb8b4 ESlint key-spacing, no-trailing-spaces 8 years ago
Peter Jaszkowiak 2ba46808a1 ESlint one-var, fix comma-dangle 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
pichalite aacd8a2422 Fix return and tests 8 years ago
pichalite 8dab8864f6 Add extensions for cropped images 8 years ago
Peter Jaszkowiak bb1bfb0449 Merge branch 'master' into assets-route 8 years ago
Peter Jaszkowiak d31499a860 Fix tests rewriting `logo.png` 8 years ago
pichalite de28ff5d43 Ability to crop profile images before uploading 8 years ago
pichalite 8a68e1d918 Delete cover position data when cover photo is deleted 8 years ago
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule 8 years ago
barisusakli b6ac809a7d moved sync code out of async 9 years ago
Mathias Schreck ce9ee62fa0 Handle callback errors 9 years ago
Ben Lubar fc387111e2 make keeping avatar versions an option in the ACP that is turned off by default 9 years ago
Ben Lubar 0d40542f93 Keep old versions of avatars in the filesystem. Change the avatar URL each time a new one is uploaded to avoid caching problems. Closes #4722. 9 years ago
Ben Lubar 7540fb54ac fix avatar upload crash discovered by @AccaliaDeElementia 9 years ago
Ben Lubar 74a5a70969 fix convert-avatars-to-png option not being honored 9 years ago
barisusakli c50d655922 closes #4325 9 years ago
Barış Soner Uşaklı 88e4591f88 closes #4194 9 years ago
Julian Lam 10024d7b93 fixed #4186 9 years ago
Julian Lam 119930131d fixed errors when uploading files 9 years ago
Julian Lam 3a6ad52ac8 closes #4164 9 years ago
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.
9 years ago
barisusakli 323cc165b6 closes #3851
dont use post file upload for cover uploads
check cover upload file size against new setting
store cover uploads in profile folder
use `uid-profilecover` filename for cover uploads
9 years ago
Julian Lam f1412b6e9b Fixed cover loading for subdirs and added removal
re: #3832
9 years ago
psychobunny f19043d046 profile cover photos 9 years ago
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.
10 years ago
barisusakli 9787e6c3df dont download images to local, pass to upload plugin 10 years ago
barisusakli cf193581e4 check and log all fs.unlink errors 10 years ago