mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-20 08:35:17 +00:00
Add movies support
This commit is contained in:
@ -203,8 +203,17 @@ export class PostsController {
|
||||
break;
|
||||
|
||||
|
||||
|
||||
|
||||
// Personnal movies
|
||||
case PostKind.POST_KIND_MOVIE:
|
||||
const movieID = h.postInt("movieID");
|
||||
|
||||
if(!await MoviesHelper.DoesUserHas(h.getUserId(), movieID))
|
||||
h.error(401, "You are not authorized to use this movie!");
|
||||
|
||||
newPost.movieID = movieID;
|
||||
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user