1 import { logger } from '@server/helpers/logger'
2 import { Memoize } from '@server/helpers/memoize'
3 import { ServerModel } from '@server/models/server/server'
4 import { ActorModel } from '../../actor'
5 import { ActorFollowModel } from '../../actor-follow'
6 import { ActorImageModel } from '../../actor-image'
8 export class ActorFollowTableAttributes {
11 getFollowAttributes () {
12 logger.error('coucou')
14 return ActorFollowModel.getSQLAttributes('ActorFollowModel').join(', ')
18 getActorAttributes (actorTableName: string) {
19 return ActorModel.getSQLAttributes(actorTableName, `${actorTableName}.`).join(', ')
23 getServerAttributes (actorTableName: string) {
24 return ServerModel.getSQLAttributes(`${actorTableName}->Server`, `${actorTableName}.Server.`).join(', ')
28 getAvatarAttributes (actorTableName: string) {
29 return ActorImageModel.getSQLAttributes(`${actorTableName}->Avatars`, `${actorTableName}.Avatars.`).join(', ')