unoffical wafrn mirror wafrn.net
atproto social-network activitypub
at angular21 23 lines 796 B view raw
1import { completeEnvironment } from '../backendOptions.js' 2 3let posts = ['LIST OF IDS OF POSTS TO NUKE'] 4const token = "Bearer USERTOKEN GOES GERE. IT SHOULD BE 'Bearer TOKEN'" 5 6for await (const post of posts) { 7 console.log(`Nuking ${post}`) 8 await fetch(`${completeEnvironment.frontendUrl}/api/deletePost?id=${post}`, { 9 credentials: 'include', 10 headers: { 11 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:139.0) Gecko/20100101 Firefox/139.0', 12 Accept: 'application/json, text/plain, */*', 13 'Accept-Language': 'es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3', 14 'Sec-GPC': '1', 15 'Sec-Fetch-Dest': 'empty', 16 'Sec-Fetch-Mode': 'cors', 17 'Sec-Fetch-Site': 'same-origin', 18 Authorization: token 19 }, 20 method: 'DELETE', 21 mode: 'cors' 22 }) 23}