aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/feeds/video-podcast-feeds.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/feeds/video-podcast-feeds.ts')
-rw-r--r--server/controllers/feeds/video-podcast-feeds.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/feeds/video-podcast-feeds.ts b/server/controllers/feeds/video-podcast-feeds.ts
index f63f6ee63..5afb51594 100644
--- a/server/controllers/feeds/video-podcast-feeds.ts
+++ b/server/controllers/feeds/video-podcast-feeds.ts
@@ -1,8 +1,8 @@
1import express from 'express' 1import express from 'express'
2import { maxBy } from 'lodash'
3import { extname } from 'path' 2import { extname } from 'path'
4import { Feed } from '@peertube/feed' 3import { Feed } from '@peertube/feed'
5import { CustomTag, CustomXMLNS, LiveItemStatus } from '@peertube/feed/lib/typings' 4import { CustomTag, CustomXMLNS, LiveItemStatus } from '@peertube/feed/lib/typings'
5import { getBiggestActorImage } from '@server/lib/actor-image'
6import { InternalEventEmitter } from '@server/lib/internal-event-emitter' 6import { InternalEventEmitter } from '@server/lib/internal-event-emitter'
7import { Hooks } from '@server/lib/plugins/hooks' 7import { Hooks } from '@server/lib/plugins/hooks'
8import { buildPodcastGroupsCache, cacheRouteFactory, videoFeedsPodcastSetCacheKey } from '@server/middlewares' 8import { buildPodcastGroupsCache, cacheRouteFactory, videoFeedsPodcastSetCacheKey } from '@server/middlewares'
@@ -150,7 +150,7 @@ async function generatePodcastItem (options: {
150 let personImage: string 150 let personImage: string
151 151
152 if (account.Actor.hasImage(ActorImageType.AVATAR)) { 152 if (account.Actor.hasImage(ActorImageType.AVATAR)) {
153 const avatar = maxBy(account.Actor.Avatars, 'width') 153 const avatar = getBiggestActorImage(account.Actor.Avatars, 'width')
154 personImage = WEBSERVER.URL + avatar.getStaticPath() 154 personImage = WEBSERVER.URL + avatar.getStaticPath()
155 } 155 }
156 156