mirror of
https://github.com/openvk/openvk
synced 2025-03-14 21:45:22 +03:00
Fix mentions in suggested posts
This commit is contained in:
parent
61205f64d9
commit
9a20682e01
1 changed files with 9 additions and 4 deletions
|
@ -335,10 +335,15 @@ final class WallPresenter extends OpenVKPresenter
|
||||||
if($wall > 0)
|
if($wall > 0)
|
||||||
$excludeMentions[] = $wall;
|
$excludeMentions[] = $wall;
|
||||||
|
|
||||||
$mentions = iterator_to_array($post->resolveMentions($excludeMentions));
|
if($wall < 0 && !$wallOwner->canBeModifiedBy($this->user->identity) && $wallOwner->getWallType() == 2) {
|
||||||
foreach($mentions as $mentionee)
|
# Чтобы не было упоминаний из предложки
|
||||||
if($mentionee instanceof User)
|
} else {
|
||||||
(new MentionNotification($mentionee, $post, $post->getOwner(), strip_tags($post->getText())))->emit();
|
$mentions = iterator_to_array($post->resolveMentions($excludeMentions));
|
||||||
|
|
||||||
|
foreach($mentions as $mentionee)
|
||||||
|
if($mentionee instanceof User)
|
||||||
|
(new MentionNotification($mentionee, $post, $post->getOwner(), strip_tags($post->getText())))->emit();
|
||||||
|
}
|
||||||
|
|
||||||
if($wall < 0 && !$wallOwner->canBeModifiedBy($this->user->identity) && $wallOwner->getWallType() == 2) {
|
if($wall < 0 && !$wallOwner->canBeModifiedBy($this->user->identity) && $wallOwner->getWallType() == 2) {
|
||||||
$suggsCount = $this->posts->getSuggestedPostsCount($wallOwner->getId());
|
$suggsCount = $this->posts->getSuggestedPostsCount($wallOwner->getId());
|
||||||
|
|
Loading…
Reference in a new issue