import {createMastoFetcherWithAuthorLogin} from "./libs/utils.mjs"; import moment from 'moment' moment.locale('fr') console.log('' + '
' + '' + '' + '' + '.avatar{ margin-right: 1em; margin-bottom: 1em; width: 4rem; height: 4rem;}'+ '') console.log('get mentions on all accounts managed') export async function getMentionsOfAccount(accountToFetch) { console.log('\n fetching account: ', accountToFetch) const masto = createMastoFetcherWithAuthorLogin(accountToFetch) let results = {} results = await masto.get('notifications??exclude_types[]=follow&exclude_types[]=follow_request&exclude_types[]=favourite&exclude_types[]=reblog&exclude_types[]=poll&exclude_types[]=status&exclude_types[]=update&exclude_types[]=admin.sign_up&exclude_types[]=admin.report') // console.log('results',results) console.log('