Add filter:api.video.post-import-url.accept.result
This commit is contained in:
		| @ -35,6 +35,16 @@ async function register ({ | ||||
|     } | ||||
|   }) | ||||
|  | ||||
|   registerHook({ | ||||
|     target: 'filter:api.video.post-import-url.accept.result', | ||||
|     handler: ({ accepted }, { video }) => { | ||||
|       if (!accepted) return { accepted: false } | ||||
|       if (video.name.includes('small video - youtube')) return { accepted: false, errorMessage: 'bad word' } | ||||
|  | ||||
|       return { accepted: true } | ||||
|     } | ||||
|   }) | ||||
|  | ||||
|   registerSetting({ | ||||
|     name: 'admin-name', | ||||
|     label: 'Admin name', | ||||
|  | ||||
		Reference in New Issue
	
	Block a user