mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-27 07:49:27 +00:00
Fix online issue
This commit is contained in:
parent
3f0c64495f
commit
039a47a105
@ -190,7 +190,7 @@ class CommentsController {
|
|||||||
$data["userID"] = $comment->get_userID();
|
$data["userID"] = $comment->get_userID();
|
||||||
$data["postID"] = $comment->get_postID();
|
$data["postID"] = $comment->get_postID();
|
||||||
$data["time_sent"] = $comment->get_time_sent();
|
$data["time_sent"] = $comment->get_time_sent();
|
||||||
$data["content"] = $comment->has_content() ? utf8_encode($comment->get_content()) : "";
|
$data["content"] = $comment->has_content() ? $comment->get_content() : "";
|
||||||
|
|
||||||
$data["img_path"] = $comment->has_img_path() ? $comment->get_img_path() : null;
|
$data["img_path"] = $comment->has_img_path() ? $comment->get_img_path() : null;
|
||||||
$data["img_url"] = $comment->has_img_url() ? $comment->get_img_url() : null;
|
$data["img_url"] = $comment->has_img_url() ? $comment->get_img_url() : null;
|
||||||
|
@ -529,7 +529,7 @@ class PostsController {
|
|||||||
$data["userID"] = $post->get_userID();
|
$data["userID"] = $post->get_userID();
|
||||||
$data["user_page_id"] = $post->get_user_page_id();
|
$data["user_page_id"] = $post->get_user_page_id();
|
||||||
$data["post_time"] = $post->get_time_sent();
|
$data["post_time"] = $post->get_time_sent();
|
||||||
$data["content"] = $post->has_content() ? utf8_encode($post->get_content()) : null;
|
$data["content"] = $post->has_content() ? $post->get_content() : null;
|
||||||
$data["visibility_level"] = self::VISIBILITY_LEVELS_API[$post->get_visibility_level()];
|
$data["visibility_level"] = self::VISIBILITY_LEVELS_API[$post->get_visibility_level()];
|
||||||
$data["kind"] = $post->get_kind();
|
$data["kind"] = $post->get_kind();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user