From 6904a8606440b272080175f00896fc2a89bc0a21 Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko Date: Wed, 8 Dec 2021 16:26:56 +0200 Subject: [PATCH] Microblog: Display the wall on which the post was posted if it is someone else's wall --- .../templates/components/post/microblogpost.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Web/Presenters/templates/components/post/microblogpost.xml b/Web/Presenters/templates/components/post/microblogpost.xml index 08f20e05..5606f790 100644 --- a/Web/Presenters/templates/components/post/microblogpost.xml +++ b/Web/Presenters/templates/components/post/microblogpost.xml @@ -25,6 +25,22 @@ {if $author->isVerified()}{/if} + {if ($onWallOf ?? false) &&!$post->isPostedOnBehalfOfGroup() && $post->getOwnerPost() !== $post->getTargetWall()} + {var wallId = $post->getTargetWall()} + {var wallURL = $wallId > -1 ? "/id$wallId" : "/club" . abs($wallId)} + на + + + {if isset($thisUser) && $thisUser->getId() === $wallId} + вашей + {/if} + стене + {if $wallId < 0} + группы + {/if} + + + {/if} {ifset $compact}
{$post->getPublicationTime()}