- aggiornamento refreshtoken (parte 1)
- PCB: fix listino
This commit is contained in:
@@ -1697,6 +1697,16 @@ module.exports = {
|
||||
return false;
|
||||
},
|
||||
|
||||
getEnableTokenExpiredByIdApp: function (idapp) {
|
||||
|
||||
const myapp = this.MYAPPS.find(item => item.idapp === idapp);
|
||||
if (myapp) {
|
||||
return myapp.confpages.enableTokenExpired;
|
||||
}
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
getConfParamSiteByIdApp: function (idapp, field) {
|
||||
|
||||
const myapp = this.MYAPPS.find(item => item.idapp === idapp);
|
||||
@@ -4710,6 +4720,17 @@ module.exports = {
|
||||
} else if (tablerec === shared_consts.TABLES_MYHOSPS) {
|
||||
newdescr = i18n.__('Hosp', userorig, mydescr);
|
||||
}
|
||||
|
||||
let contatto = userorig;
|
||||
try {
|
||||
let username_telegram = myrec.profile.username_telegram;
|
||||
|
||||
if (username_telegram)
|
||||
contatto = `@${username_telegram}`;
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
let organizedBy = '';
|
||||
let cat = '';
|
||||
let status = '';
|
||||
let online = false;
|
||||
@@ -4726,6 +4747,18 @@ module.exports = {
|
||||
}
|
||||
} else if (tablerec === shared_consts.TABLES_MYHOSPS) {
|
||||
cat = '';
|
||||
} else if (tablerec === shared_consts.TABLES_MYBACHECAS) {
|
||||
if (myrec.organisedBy) {
|
||||
organizedBy = myrec.organisedBy;
|
||||
contatto = '';
|
||||
}
|
||||
if (myrec.contact_phone) {
|
||||
contatto += '/n' + myrec.contact_phone;
|
||||
}
|
||||
if (myrec.contact_telegram) {
|
||||
contatto += '/n' + myrec.contact_telegram;
|
||||
}
|
||||
|
||||
}
|
||||
// let out = i18n.__('NEW_ANNUNCIO_TELEGRAM', mydescr, dovestr, descrestesa, userorig);
|
||||
|
||||
@@ -4744,7 +4777,7 @@ module.exports = {
|
||||
|
||||
let note = this.convertHTMLTagsToText(myrec.note)
|
||||
|
||||
let descrcontent = this.firstchars(this.removeLastSpaceAndACapo(note), 400, true, url);
|
||||
let descrcontent = this.firstchars(this.removeLastSpaceAndACapo(note), 500, true, url);
|
||||
|
||||
// descrcontent = '<span size="3"><b>Prova Pao</b> Ciaooo</span>';
|
||||
|
||||
@@ -4763,16 +4796,13 @@ module.exports = {
|
||||
if (contributo)
|
||||
out += this.addRowTelegram('💰', 'Contributo', contributo, true);
|
||||
|
||||
let contatto = userorig;
|
||||
try {
|
||||
let username_telegram = myrec.profile.username_telegram;
|
||||
|
||||
if (username_telegram)
|
||||
contatto = `@${username_telegram}`;
|
||||
} catch (e) {
|
||||
if (organizedBy) {
|
||||
out += this.addRowTelegram('🏠', 'Organizzato da', organizedBy, true);
|
||||
out += this.addRowTelegram('', 'Redatto da', contatto, true);
|
||||
} else {
|
||||
out += this.addRowTelegram('👤', 'Contatto', contatto, true);
|
||||
}
|
||||
|
||||
out += this.addRowTelegram('👤', 'Contatto', contatto, true);
|
||||
|
||||
out += this.addRowTelegram('', `👉🏻 Vedi Annuncio completo su RISO`, url, true, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user