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>
37 lines
845 B
TypeScript
37 lines
845 B
TypeScript
import { ActivityIconObject, ActivityPubAttributedTo } from './objects/common-objects'
|
|
|
|
export type ActivityPubActorType = 'Person' | 'Application' | 'Group' | 'Service' | 'Organization'
|
|
|
|
export interface ActivityPubActor {
|
|
'@context': any[]
|
|
type: ActivityPubActorType
|
|
id: string
|
|
following: string
|
|
followers: string
|
|
playlists?: string
|
|
inbox: string
|
|
outbox: string
|
|
preferredUsername: string
|
|
url: string
|
|
name: string
|
|
endpoints: {
|
|
sharedInbox: string
|
|
}
|
|
summary: string
|
|
attributedTo: ActivityPubAttributedTo[]
|
|
|
|
support?: string
|
|
publicKey: {
|
|
id: string
|
|
owner: string
|
|
publicKeyPem: string
|
|
}
|
|
|
|
image?: ActivityIconObject | ActivityIconObject[]
|
|
|
|
icon?: ActivityIconObject | ActivityIconObject[]
|
|
// TODO: migrate to `icon`, introduced in 4.2
|
|
icons?: ActivityIconObject[]
|
|
|
|
published?: string
|
|
}
|