From 90a3352c993624d4a30185dc45dad33eb669dcf0 Mon Sep 17 00:00:00 2001 From: xRy0 Date: Tue, 20 May 2025 19:35:03 +0300 Subject: [PATCH] feat(FeedIgnore): remove garbage logic --- Web/Presenters/WallPresenter.php | 1 - Web/Presenters/templates/components/post/microblogpost.xml | 2 +- Web/Presenters/templates/components/post/oldpost.xml | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Web/Presenters/WallPresenter.php b/Web/Presenters/WallPresenter.php index 709a0091..f4a8e898 100644 --- a/Web/Presenters/WallPresenter.php +++ b/Web/Presenters/WallPresenter.php @@ -113,7 +113,6 @@ final class WallPresenter extends OpenVKPresenter "amount" => sizeof($this->template->posts), "perPage" => OPENVK_DEFAULT_PER_PAGE, ]; - $this->template->ignore_status = $owner->isIgnoredBy($this->user->identity); $this->logPostsViewed($this->template->posts, $user); diff --git a/Web/Presenters/templates/components/post/microblogpost.xml b/Web/Presenters/templates/components/post/microblogpost.xml index 5933f4bb..b1bd2cbe 100644 --- a/Web/Presenters/templates/components/post/microblogpost.xml +++ b/Web/Presenters/templates/components/post/microblogpost.xml @@ -58,7 +58,7 @@ {_pinned} - + {if $canBePinned && !($forceNoPinLink ?? false) && $compact == false} {if $post->isPinned()} diff --git a/Web/Presenters/templates/components/post/oldpost.xml b/Web/Presenters/templates/components/post/oldpost.xml index a1d6a34e..9c38ac86 100644 --- a/Web/Presenters/templates/components/post/oldpost.xml +++ b/Web/Presenters/templates/components/post/oldpost.xml @@ -136,7 +136,7 @@ {/if} {if !$canBeDeleted} - {if !$ignore_status}{_ignore_user}{else}{_unignore_user}{/if}  |  + {_ignore_user}  |  {/if} {if !($forceNoPinLink ?? false) && $canBePinned}