Microblog: Display the wall on which the post was posted if it is someone else's wall

This commit is contained in:
Maxim Leshchenko 2021-12-08 16:26:56 +02:00
parent c1f2c9f004
commit 6904a86064
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -25,6 +25,22 @@
</b>
</a>
{if $author->isVerified()}<img class="name-checkmark" src="/assets/packages/static/openvk/img/checkmark.png">{/if}
{if ($onWallOf ?? false) &&!$post->isPostedOnBehalfOfGroup() && $post->getOwnerPost() !== $post->getTargetWall()}
{var wallId = $post->getTargetWall()}
{var wallURL = $wallId > -1 ? "/id$wallId" : "/club" . abs($wallId)}
на
<a href="{$wallURL}">
<b>
{if isset($thisUser) && $thisUser->getId() === $wallId}
вашей
{/if}
стене
{if $wallId < 0}
группы
{/if}
</b>
</a>
{/if}
{ifset $compact}<br>
<a href="/wall{$post->getPrettyId()}" class="date">
{$post->getPublicationTime()}