mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-30 17:26:35 +00:00
Fix issues
This commit is contained in:
parent
cf4b75c61a
commit
a3b005d184
@ -188,7 +188,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->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;
|
||||||
|
@ -290,7 +290,7 @@ class Comments {
|
|||||||
//Check for image
|
//Check for image
|
||||||
if($data["image_commentaire"] != ""){
|
if($data["image_commentaire"] != ""){
|
||||||
$comment->set_img_path(str_replace("file:", "", $data["image_commentaire"]));
|
$comment->set_img_path(str_replace("file:", "", $data["image_commentaire"]));
|
||||||
$info->set_img_url(path_user_data($info->get_img_path(), false));
|
$comment->set_img_url(path_user_data($comment->get_img_path(), false));
|
||||||
}
|
}
|
||||||
|
|
||||||
if($load_likes){
|
if($load_likes){
|
||||||
|
Loading…
Reference in New Issue
Block a user