mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix nsfw filter
This commit is contained in:
@@ -5,7 +5,7 @@ import './video-abuse'
|
||||
import './video-blacklist'
|
||||
import './video-blacklist-management'
|
||||
import './video-captions'
|
||||
import './vidoe-change-ownership'
|
||||
import './video-change-ownership'
|
||||
import './video-channels'
|
||||
import './video-comments'
|
||||
import './video-description'
|
||||
|
||||
@@ -148,6 +148,9 @@ describe('Test video NSFW policy', function () {
|
||||
})
|
||||
|
||||
it('Should display NSFW videos with blur user NSFW policy', async function () {
|
||||
customConfig.instance.defaultNSFWPolicy = 'do_not_list'
|
||||
await updateCustomConfig(server.url, server.accessToken, customConfig)
|
||||
|
||||
for (const res of await getVideosFunctions(userAccessToken)) {
|
||||
expect(res.body.total).to.equal(2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user