import { CONFIG } from '../../initializers/config'
import { throwIfNotValid } from '../utils'
import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc'
+import { MAvatarFormattable } from '@server/types/models'
@Table({
tableName: 'avatar',
return AvatarModel.findOne(query)
}
- toFormattedJSON (): Avatar {
+ toFormattedJSON (this: MAvatarFormattable): Avatar {
return {
path: this.getStaticPath(),
createdAt: this.createdAt,