aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorAlberto Mardegan <mardy@users.sourceforge.net>2022-10-11 18:02:47 +0300
committerGitHub <noreply@github.com>2022-10-11 17:02:47 +0200
commit5e1bd8690b740e10aa3a959eb3ecaf7a0aae87cf (patch)
tree156a0cf2f3aafe34ef1af3fdb6b5b21476943ff0 /server/tests
parentbbae45c32ea41ba4926b291fac5f594c94d5aa9d (diff)
downloadPeerTube-5e1bd8690b740e10aa3a959eb3ecaf7a0aae87cf.tar.gz
PeerTube-5e1bd8690b740e10aa3a959eb3ecaf7a0aae87cf.tar.zst
PeerTube-5e1bd8690b740e10aa3a959eb3ecaf7a0aae87cf.zip
server: use account/channel avatar in RSS feeds (#5325)
* server: use account/channel avatar in RSS feeds Fixes: #5320 * Styling Co-authored-by: Chocobozzz <me@florianbigard.com>
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/feeds/feeds.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/tests/feeds/feeds.ts b/server/tests/feeds/feeds.ts
index 1d3c03d67..0ddb641e6 100644
--- a/server/tests/feeds/feeds.ts
+++ b/server/tests/feeds/feeds.ts
@@ -9,6 +9,7 @@ import {
9 createSingleServer, 9 createSingleServer,
10 doubleFollow, 10 doubleFollow,
11 makeGetRequest, 11 makeGetRequest,
12 makeRawRequest,
12 PeerTubeServer, 13 PeerTubeServer,
13 setAccessTokensToServers, 14 setAccessTokensToServers,
14 setDefaultChannelAvatar, 15 setDefaultChannelAvatar,
@@ -306,6 +307,15 @@ describe('Test syndication feeds', () => {
306 307
307 await stopFfmpeg(ffmpeg) 308 await stopFfmpeg(ffmpeg)
308 }) 309 })
310
311 it('Should have the channel avatar as feed icon', async function () {
312 const json = await servers[0].feed.getJSON({ feed: 'videos', query: { videoChannelId: rootChannelId }, ignoreCache: true })
313
314 const jsonObj = JSON.parse(json)
315 const imageUrl = jsonObj.icon
316 expect(imageUrl).to.include('/lazy-static/avatars/')
317 await makeRawRequest(imageUrl)
318 })
309 }) 319 })
310 320
311 describe('Video comments feed', function () { 321 describe('Video comments feed', function () {