aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/account/actor-image.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/account/actor-image.ts')
-rw-r--r--server/models/account/actor-image.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/models/account/actor-image.ts b/server/models/account/actor-image.ts
index c532bd08d..b779e3cf6 100644
--- a/server/models/account/actor-image.ts
+++ b/server/models/account/actor-image.ts
@@ -72,7 +72,11 @@ export class ActorImageModel extends Model {
72 } 72 }
73 73
74 getStaticPath () { 74 getStaticPath () {
75 return join(LAZY_STATIC_PATHS.AVATARS, this.filename) 75 if (this.type === ActorImageType.AVATAR) {
76 return join(LAZY_STATIC_PATHS.AVATARS, this.filename)
77 }
78
79 return join(LAZY_STATIC_PATHS.BANNERS, this.filename)
76 } 80 }
77 81
78 getPath () { 82 getPath () {