From 500107fa78aa2270280e16bc28c901b78c66478a Mon Sep 17 00:00:00 2001 From: lalka2016 <99399973+lalka2016@users.noreply.github.com> Date: Sat, 2 Sep 2023 13:10:06 +0300 Subject: [PATCH] planshet openvk Add tabs for post view, add signer's object in wall get and add person icon in microblog --- VKAPI/Handlers/Wall.php | 8 ++++---- Web/Presenters/templates/Wall/Post.xml | 14 ++++++++++++++ .../templates/components/post/microblogpost.xml | 4 ++-- Web/static/css/main.css | 14 ++++++++++++++ Web/static/img/person.png | Bin 0 -> 265 bytes 5 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 Web/static/img/person.png diff --git a/VKAPI/Handlers/Wall.php b/VKAPI/Handlers/Wall.php index cf8e8fcf..f58feebf 100644 --- a/VKAPI/Handlers/Wall.php +++ b/VKAPI/Handlers/Wall.php @@ -201,8 +201,8 @@ final class Wall extends VKAPIRequestHandler else $groups[] = $from_id * -1; - /*if($post->isSigned()) - $profiles[] = $post->getOwner(false)->getId();*/ + if($post->isSigned()) + $profiles[] = $post->getOwner(false)->getId(); $attachments = NULL; # free attachments so it will not clone everythingg } @@ -392,8 +392,8 @@ final class Wall extends VKAPIRequestHandler else $groups[] = $from_id * -1; - /*if($post->isSigned()) - $profiles[] = $post->getOwner(false)->getId();*/ + if($post->isSigned()) + $profiles[] = $post->getOwner(false)->getId(); $attachments = NULL; # free attachments so it will not clone everything $repost = NULL; # same diff --git a/Web/Presenters/templates/Wall/Post.xml b/Web/Presenters/templates/Wall/Post.xml index 575c7bba..a0da7599 100644 --- a/Web/Presenters/templates/Wall/Post.xml +++ b/Web/Presenters/templates/Wall/Post.xml @@ -14,6 +14,20 @@ {/block} {block content} +
{include "../components/post.xml", post => $post, forceNoCommentsLink => TRUE, forceNoDeleteLink => TRUE}