Microblog: Display a checkbox for posting a comment on behalf of a group in feeds

This commit is contained in:
Maxim Leshchenko 2022-01-20 22:44:45 +02:00
parent dc20ccb0be
commit cc501cf3ba
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -129,7 +129,8 @@
{/foreach}
<div n:ifset="$thisUser" id="commentTextArea{$commentTextAreaId}" n:attr="style => ($commentsCount == 0 ? 'display: none;')" class="commentsTextFieldWrap">
{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}
</div>
</div>
{/if}