mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-15 01:42:04 +02:00
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.
This commit is contained in:
@@ -37,7 +37,12 @@ module.exports = function(User) {
|
||||
file.isFileTypeAllowed(picture.path, ['png', 'jpeg', 'jpg', 'gif'], next);
|
||||
},
|
||||
function(next) {
|
||||
image.resizeImage(picture.path, extension, imageDimension, imageDimension, next);
|
||||
image.resizeImage({
|
||||
path: picture.path,
|
||||
extension: extension,
|
||||
width: imageDimension,
|
||||
height: imageDimension
|
||||
}, next);
|
||||
},
|
||||
function(next) {
|
||||
if (convertToPNG) {
|
||||
|
||||
Reference in New Issue
Block a user