Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

rename News category into News & Politics (#1261)

Adnane Belmadiaf6f2ae7a1aa1b
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index e08fd75cd8..49ee13c10d 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -421,7 +421,7 @@ const VIDEO_CATEGORIES = {
8: 'People',
9: 'Comedy',
10: 'Entertainment',
- 11: 'News',
+ 11: 'News & Politics',
12: 'How To',
13: 'Education',
14: 'Activism',
diff --git a/server/tests/api/videos/single-server.ts b/server/tests/api/videos/single-server.ts
index e3d62b7a0d..089c3df259 100644
--- a/server/tests/api/videos/single-server.ts
+++ b/server/tests/api/videos/single-server.ts
@@ -118,7 +118,7 @@ describe('Test a single server', function () {
const categories = res.body
expect(Object.keys(categories)).to.have.length.above(10)
- expect(categories[11]).to.equal('News')
+ expect(categories[11]).to.equal('News & Politics')
})
it('Should list video licences', async function () {
diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts
index b7866d529a..aaee79a4ab 100644
--- a/server/tests/api/videos/video-imports.ts
+++ b/server/tests/api/videos/video-imports.ts
@@ -30,7 +30,7 @@ describe('Test video imports', function () {
const videoHttp: VideoDetails = resHttp.body
expect(videoHttp.name).to.equal('small video - youtube')
- expect(videoHttp.category.label).to.equal('News')
+ expect(videoHttp.category.label).to.equal('News & Politics')
expect(videoHttp.licence.label).to.equal('Attribution')
expect(videoHttp.language.label).to.equal('Unknown')
expect(videoHttp.nsfw).to.be.false