'use strict';dotclear.dbSpamsCount=(icon_spam)=>{dotclear.jsonServicesGet('getSpamsCount',(data)=>{const nb=data.ret;if(nb!=dotclear.dbSpamsCount_Counter){const url=`${icon_spam.attr('href')}&status=-2`;const icon=$(`#dashboard-main #icons p a[href="${url}"]`);if(icon.length){const nb_label=icon.children('span.db-icon-title-spam');if(nb_label.length){nb_label.text(nb);}}else if(nb!=''){const xml=` <a href="${url}"><span class="db-icon-title-spam">${nb}</span></a>`;icon_spam.after(xml);}
dotclear.dbSpamsCount_Counter=nb;}});};$(()=>{const icon_spam=$('#dashboard-main #icons p #icon-process-comments-fav');if(icon_spam.length){dotclear.dbSpamsCount(icon_spam);dotclear.dbSpamsCount_Timer=setInterval(dotclear.dbSpamsCount,60*1000,icon_spam);}});