d0800f7661
* client: remove unused file * refactor(client/my-actor-avatar): size from input Read size from component input instead of scss, to make it possible to use smaller avatar images when implemented. * implement avatar miniatures close #4560 * fix(test): max file size * fix(search-index): normalize res acc to avatarMini * refactor avatars to an array * client/search: resize channel avatar to 120 * refactor(client/videos): remove unused function * client(actor-avatar): set default size * fix tests and avatars full result When findOne is used only an array containting one avatar is returned. * update migration version and version notations * server/search: harmonize normalizing * Cleanup avatar miniature PR Co-authored-by: Chocobozzz <me@florianbigard.com>
25 lines
446 B
TypeScript
25 lines
446 B
TypeScript
import { ActorImage } from './actor-image.model'
|
|
import { Actor } from './actor.model'
|
|
|
|
export interface Account extends Actor {
|
|
displayName: string
|
|
description: string
|
|
avatars: ActorImage[]
|
|
|
|
updatedAt: Date | string
|
|
|
|
userId?: number
|
|
}
|
|
|
|
export interface AccountSummary {
|
|
id: number
|
|
name: string
|
|
displayName: string
|
|
url: string
|
|
host: string
|
|
|
|
avatars: ActorImage[]
|
|
|
|
// TODO: remove, deprecated in 4.2
|
|
avatar: ActorImage
|
|
}
|