- cataloghi...
- fix: condividi su Telegram non funzionava errore sull'immagine
This commit is contained in:
@@ -1009,7 +1009,7 @@ sendNotifSchema.statics.createNewNotification = async function (req, res, params
|
||||
myrecnotif.idrec = rec._id;
|
||||
try {
|
||||
if (rec.photos && rec.photos[0]) {
|
||||
const mydir = server_constants.DIR_UPLOAD + shared_consts.getDirectoryByTable(table, true);
|
||||
const mydir = tools.getHostByIdApp(myrecnotif.idapp) + server_constants.DIR_UPLOAD + '/' + shared_consts.getDirectoryImgByTable(table, rec.username);
|
||||
myrecnotif.img = mydir + rec.photos[0].imagefile;
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user