])
}
+ static removeFollowsOf (actorId: number, t?: Transaction) {
+ const query = {
+ where: {
+ [Op.or]: [
+ {
+ actorId
+ },
+ {
+ targetActorId: actorId
+ }
+ ]
+ },
+ transaction: t
+ }
+
+ return ActorFollowModel.destroy(query)
+ }
+
// Remove actor follows with a score of 0 (too many requests where they were unreachable)
static async removeBadActorFollows () {
const actorFollows = await ActorFollowModel.listBadActorFollows()