mirror of https://github.com/Chocobozzz/PeerTube
Prefer displaying channel in rss feeds
parent
868314e8bf
commit
ec3ce76f19
|
@ -285,8 +285,8 @@ function addVideosToFeed (feed: Feed, videos: VideoModel[]) {
|
||||||
content: toSafeHtml(video.description),
|
content: toSafeHtml(video.description),
|
||||||
author: [
|
author: [
|
||||||
{
|
{
|
||||||
name: video.VideoChannel.Account.getDisplayName(),
|
name: video.VideoChannel.getDisplayName(),
|
||||||
link: video.VideoChannel.Account.Actor.url
|
link: video.VideoChannel.Actor.url
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
date: video.publishedAt,
|
date: video.publishedAt,
|
||||||
|
|
|
@ -189,7 +189,7 @@ describe('Test syndication feeds', () => {
|
||||||
const jsonObj = JSON.parse(json)
|
const jsonObj = JSON.parse(json)
|
||||||
expect(jsonObj.items.length).to.be.equal(1)
|
expect(jsonObj.items.length).to.be.equal(1)
|
||||||
expect(jsonObj.items[0].title).to.equal('my super name for server 1')
|
expect(jsonObj.items[0].title).to.equal('my super name for server 1')
|
||||||
expect(jsonObj.items[0].author.name).to.equal('root')
|
expect(jsonObj.items[0].author.name).to.equal('Main root channel')
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -197,7 +197,7 @@ describe('Test syndication feeds', () => {
|
||||||
const jsonObj = JSON.parse(json)
|
const jsonObj = JSON.parse(json)
|
||||||
expect(jsonObj.items.length).to.be.equal(1)
|
expect(jsonObj.items.length).to.be.equal(1)
|
||||||
expect(jsonObj.items[0].title).to.equal('user video')
|
expect(jsonObj.items[0].title).to.equal('user video')
|
||||||
expect(jsonObj.items[0].author.name).to.equal('john')
|
expect(jsonObj.items[0].author.name).to.equal('Main john channel')
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const server of servers) {
|
for (const server of servers) {
|
||||||
|
@ -223,7 +223,7 @@ describe('Test syndication feeds', () => {
|
||||||
const jsonObj = JSON.parse(json)
|
const jsonObj = JSON.parse(json)
|
||||||
expect(jsonObj.items.length).to.be.equal(1)
|
expect(jsonObj.items.length).to.be.equal(1)
|
||||||
expect(jsonObj.items[0].title).to.equal('my super name for server 1')
|
expect(jsonObj.items[0].title).to.equal('my super name for server 1')
|
||||||
expect(jsonObj.items[0].author.name).to.equal('root')
|
expect(jsonObj.items[0].author.name).to.equal('Main root channel')
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -231,7 +231,7 @@ describe('Test syndication feeds', () => {
|
||||||
const jsonObj = JSON.parse(json)
|
const jsonObj = JSON.parse(json)
|
||||||
expect(jsonObj.items.length).to.be.equal(1)
|
expect(jsonObj.items.length).to.be.equal(1)
|
||||||
expect(jsonObj.items[0].title).to.equal('user video')
|
expect(jsonObj.items[0].title).to.equal('user video')
|
||||||
expect(jsonObj.items[0].author.name).to.equal('john')
|
expect(jsonObj.items[0].author.name).to.equal('Main john channel')
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const server of servers) {
|
for (const server of servers) {
|
||||||
|
|
Loading…
Reference in New Issue