mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Add ability to customize instance logo
This commit is contained in:
parent
f5fd593976
commit
c0f4de6077
96 changed files with 1910 additions and 532 deletions
|
@ -4,6 +4,7 @@ import { AllowNull, Column, Default, DefaultScope, HasOne, IsInt, Table } from '
|
|||
import { AccountModel } from '../account/account.js'
|
||||
import { ActorImageModel } from '../actor/actor-image.js'
|
||||
import { SequelizeModel } from '../shared/index.js'
|
||||
import { UploadImageModel } from './upload-image.js'
|
||||
|
||||
export const getServerActor = memoizee(async function () {
|
||||
const application = await ApplicationModel.load()
|
||||
|
@ -16,6 +17,9 @@ export const getServerActor = memoizee(async function () {
|
|||
actor.Avatars = avatars
|
||||
actor.Banners = banners
|
||||
|
||||
const uploadImages = await UploadImageModel.listByActor(actor)
|
||||
actor.UploadImages = uploadImages
|
||||
|
||||
return actor
|
||||
}, { promise: true })
|
||||
|
||||
|
@ -32,7 +36,6 @@ export const getServerActor = memoizee(async function () {
|
|||
timestamps: false
|
||||
})
|
||||
export class ApplicationModel extends SequelizeModel<ApplicationModel> {
|
||||
|
||||
@AllowNull(false)
|
||||
@Default(0)
|
||||
@IsInt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue