mirror of
https://github.com/openvk/openvk
synced 2025-07-03 14:29:53 +03:00
feat(FeedIgnore): remove garbage logic
This commit is contained in:
parent
ddefa14881
commit
90a3352c99
3 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||||
|
|
|
@ -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()}
|
||||||
|
|
|
@ -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> |
|
<a class="delete" id="__ignoreSomeone" data-val='1' data-id="{$wallOwner->getId()}">{_ignore_user}</a> |
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if !($forceNoPinLink ?? false) && $canBePinned}
|
{if !($forceNoPinLink ?? false) && $canBePinned}
|
||||||
|
|
Loading…
Reference in a new issue