Thank you very much! Awesome! @yariplus
Fredrik Melén
Posts
-
Need to hook to /api/user/username/topics .build -
Need to hook to /api/user/username/topics .buildHi
I'd like to add some extra information to the user information on this page. Is there a way to hook there?The thing I'm doing is adding user.fullname wherever I can in the system, but this is the only place I can't seem to get to the templateValues
A little help please?
-
how to access meta.config.maximumFileSize in plugin client side js?Hi.
Since nodebb-plugin-composer-redactor don't listen to meta.config.maximumFileSize and I need to restrict this a bit
I've modified redactor.js to this:
traverseFile: function(file, e) {
var maxFileSize = 1500 * 1024;
if(file.size > maxFileSize){
this.modal.close();
this.selection.restore();
this.core.setCallback('fileUploadError', 'file-size-error'); //needed?
return app.alertError('[errormessage]',20000);
}Is there a simple way to make maxFileSize contain the meta.config.maximumFileSize value instead?