mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-26 23:39:22 +00:00
Fix visibility level when creating new posts
This commit is contained in:
parent
dc5ad6aea4
commit
cb47b67dc6
@ -114,7 +114,7 @@ pub fn create_post(r: &mut HttpRequestHandler) -> RequestResult {
|
|||||||
time_create: time(),
|
time_create: time(),
|
||||||
target_page,
|
target_page,
|
||||||
content: Some(r.post_string_opt("content", 0, false)?),
|
content: Some(r.post_string_opt("content", 0, false)?),
|
||||||
visibility: PostVisibilityLevel::VISIBILITY_PUBLIC, // TODO : fix
|
visibility: PostVisibilityLevel::from_api(&r.post_string("visibility")?),
|
||||||
kind: PostKind::POST_KIND_TEXT,
|
kind: PostKind::POST_KIND_TEXT,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user