From cc501cf3baaa1a7300a3e188cdda31f470190a04 Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko Date: Thu, 20 Jan 2022 22:44:45 +0200 Subject: [PATCH] Microblog: Display a checkbox for posting a comment on behalf of a group in feeds --- Web/Presenters/templates/components/post/microblogpost.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Web/Presenters/templates/components/post/microblogpost.xml b/Web/Presenters/templates/components/post/microblogpost.xml index b25b7c5f..2e35c0f0 100644 --- a/Web/Presenters/templates/components/post/microblogpost.xml +++ b/Web/Presenters/templates/components/post/microblogpost.xml @@ -129,7 +129,8 @@ {/foreach}
{var commentsURL = "/al_comments/create/posts/" . $post->getId()} - {include "../textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti"), post => $post} + {var club = is_null($club) ? ($post->getTargetWall() < 0 ? (new openvk\Web\Models\Repositories\Clubs)->get(abs($post->getTargetWall())) : NULL) : $club} + {include "../textArea.xml", route => $commentsURL, postOpts => false, graffiti => (bool) ovkGetQuirk("comments.allow-graffiti"), post => $post, club => $club}
{/if}