unoffical wafrn mirror wafrn.net
atproto social-network activitypub
at angular21 16 lines 656 B view raw
1import { activityPubObject } from '../../../interfaces/fediverse/activityPubObject.js' 2import { User } from '../../../models/index.js' 3import { getPostThreadRecursive } from '../getPostThreadRecursive.js' 4import { signAndAccept } from '../signAndAccept.js' 5 6async function RemoveActivity(body: activityPubObject, remoteUser: User, user: User) { 7 const apObject: activityPubObject = body 8 const postToNotFeature = await getPostThreadRecursive(user, apObject.object) 9 if (postToNotFeature) { 10 postToNotFeature.featured = null 11 await postToNotFeature.save() 12 } 13 // await signAndAccept({ body: body }, remoteUser, user) 14} 15 16export { RemoveActivity }