feat(FeedIgnore): remove garbage logic

This commit is contained in:
xRy0 2025-05-20 19:35:03 +03:00
parent ddefa14881
commit 90a3352c99
No known key found for this signature in database
GPG key ID: 0DD2B72E974C9E3B
3 changed files with 2 additions and 3 deletions

View file

@ -113,7 +113,6 @@ final class WallPresenter extends OpenVKPresenter
"amount" => sizeof($this->template->posts), "amount" => sizeof($this->template->posts),
"perPage" => OPENVK_DEFAULT_PER_PAGE, "perPage" => OPENVK_DEFAULT_PER_PAGE,
]; ];
$this->template->ignore_status = $owner->isIgnoredBy($this->user->identity);
$this->logPostsViewed($this->template->posts, $user); $this->logPostsViewed($this->template->posts, $user);

View file

@ -58,7 +58,7 @@
<span n:if="$post->isPinned()" class="nobold">{_pinned}</span> <span n:if="$post->isPinned()" class="nobold">{_pinned}</span>
<a n:if="$canBeDeleted && !($forceNoDeleteLink ?? false) && $compact == false" class="delete" href="/wall{$post->getPrettyId()}/delete"></a> <a n:if="$canBeDeleted && !($forceNoDeleteLink ?? false) && $compact == false" class="delete" href="/wall{$post->getPrettyId()}/delete"></a>
<a n:if="!$canBeDeleted" class="ignore" id="__ignoreSomeone" title="{if !$ignore_status}{_ignore_user}{else}{_unignore_user}{/if}" data-val='{!$ignore_status ? 1 : 0}' data-id="{$wallOwner->getId()}"></a> <a n:if="!$canBeDeleted" class="ignore" id="__ignoreSomeone" title="{_ignore_user}" data-val='1' data-id="{$wallOwner->getId()}"></a>
{if $canBePinned && !($forceNoPinLink ?? false) && $compact == false} {if $canBePinned && !($forceNoPinLink ?? false) && $compact == false}
{if $post->isPinned()} {if $post->isPinned()}

View file

@ -136,7 +136,7 @@
{/if} {/if}
{if !$canBeDeleted} {if !$canBeDeleted}
<a class="delete" id="__ignoreSomeone" data-val='{!$ignore_status ? 1 : 0}' data-id="{$wallOwner->getId()}">{if !$ignore_status}{_ignore_user}{else}{_unignore_user}{/if}</a> &nbsp;|&nbsp; <a class="delete" id="__ignoreSomeone" data-val='1' data-id="{$wallOwner->getId()}">{_ignore_user}</a> &nbsp;|&nbsp;
{/if} {/if}
{if !($forceNoPinLink ?? false) && $canBePinned} {if !($forceNoPinLink ?? false) && $canBePinned}