branding for server
This commit is contained in:
parent
d70148aca3
commit
a336c99d6d
6 changed files with 89 additions and 3 deletions
|
|
@ -443,6 +443,11 @@ func run(logger *zap.Logger) error {
|
|||
zap.Int("blobs", stats.Blobs),
|
||||
)
|
||||
}
|
||||
if seeded, err := filesService.SeedOfficialSystemAvatar(ctx); err != nil {
|
||||
return fmt.Errorf("seed official system avatar: %w", err)
|
||||
} else if seeded {
|
||||
logger.Info("官方系统账号头像种子导入完成", zap.Int64("photo_id", domain.OfficialSystemUserPhotoID))
|
||||
}
|
||||
if stats, err := filesService.WarmCaches(ctx); err != nil {
|
||||
logger.Warn("媒体资源缓存预热失败", zap.Error(err))
|
||||
} else if stats.StickerSets > 0 || stats.Documents > 0 || stats.Blobs > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue