diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-25 09:10:20 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-25 09:37:30 +0200 |
commit | a220b84b0e29c7ce1b32166aec07870696a28ef9 (patch) | |
tree | c7dfdbe24a28e5491d6dc103ffc9b10d4f15296a /server/models/actor | |
parent | 424aeb12bd16f5d6763dfa2860d113cc93876405 (diff) | |
download | PeerTube-a220b84b0e29c7ce1b32166aec07870696a28ef9.tar.gz PeerTube-a220b84b0e29c7ce1b32166aec07870696a28ef9.tar.zst PeerTube-a220b84b0e29c7ce1b32166aec07870696a28ef9.zip |
Fix avatars in notifications
Diffstat (limited to 'server/models/actor')
-rw-r--r-- | server/models/actor/actor-image.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/models/actor/actor-image.ts b/server/models/actor/actor-image.ts index f74ab735e..9d44ef4d1 100644 --- a/server/models/actor/actor-image.ts +++ b/server/models/actor/actor-image.ts | |||
@@ -138,6 +138,9 @@ export class ActorImageModel extends Model<Partial<AttributesOnly<ActorImageMode | |||
138 | 138 | ||
139 | case ActorImageType.BANNER: | 139 | case ActorImageType.BANNER: |
140 | return join(LAZY_STATIC_PATHS.BANNERS, this.filename) | 140 | return join(LAZY_STATIC_PATHS.BANNERS, this.filename) |
141 | |||
142 | default: | ||
143 | throw new Error('Unknown actor image type: ' + this.type) | ||
141 | } | 144 | } |
142 | } | 145 | } |
143 | 146 | ||