diff options
Diffstat (limited to 'server/controllers/feeds/video-podcast-feeds.ts')
-rw-r--r-- | server/controllers/feeds/video-podcast-feeds.ts | 4 |
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 @@ | |||
1 | import express from 'express' | 1 | import express from 'express' |
2 | import { maxBy } from 'lodash' | ||
3 | import { extname } from 'path' | 2 | import { extname } from 'path' |
4 | import { Feed } from '@peertube/feed' | 3 | import { Feed } from '@peertube/feed' |
5 | import { CustomTag, CustomXMLNS, LiveItemStatus } from '@peertube/feed/lib/typings' | 4 | import { CustomTag, CustomXMLNS, LiveItemStatus } from '@peertube/feed/lib/typings' |
5 | import { getBiggestActorImage } from '@server/lib/actor-image' | ||
6 | import { InternalEventEmitter } from '@server/lib/internal-event-emitter' | 6 | import { InternalEventEmitter } from '@server/lib/internal-event-emitter' |
7 | import { Hooks } from '@server/lib/plugins/hooks' | 7 | import { Hooks } from '@server/lib/plugins/hooks' |
8 | import { buildPodcastGroupsCache, cacheRouteFactory, videoFeedsPodcastSetCacheKey } from '@server/middlewares' | 8 | import { 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 | ||