mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-07-12 12:52:48 +00:00
Can change post visibility level
This commit is contained in:
src
@ -305,7 +305,10 @@ export class PostsController {
|
||||
*/
|
||||
public static async SetVisibilityLevel(h: RequestHandler) {
|
||||
|
||||
// TODO : implement
|
||||
const postID = await h.postPostIDWithAccess("postID", PostAccessLevel.FULL_ACCESS);
|
||||
const newVisibility = this.PostVisibilityLevel(h, "new_level");
|
||||
|
||||
await PostsHelper.SetLevel(postID, newVisibility);
|
||||
|
||||
h.success("");
|
||||
}
|
||||
|
Reference in New Issue
Block a user