summaryrefslogtreecommitdiffstats
path: root/lib/Service/Feed/PostDeliveryService.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/Feed/PostDeliveryService.php')
-rw-r--r--lib/Service/Feed/PostDeliveryService.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Service/Feed/PostDeliveryService.php b/lib/Service/Feed/PostDeliveryService.php
index 5bdd8d28..ff62e122 100644
--- a/lib/Service/Feed/PostDeliveryService.php
+++ b/lib/Service/Feed/PostDeliveryService.php
@@ -30,14 +30,14 @@ class PostDeliveryService {
}
// deliver to mentioned accounts
- $localFollowers = $this->accountFinder->getLocalFollowersOf($author);
- $status->getActiveMentions()->forAll(function (Mention $mention) use ($status): void{
- if ($mention->getAccount()->isLocal()) {
+ $status->getActiveMentions()->forAll(function ($mention) use ($status): void{
+ if ($mention && $mention->getAccount()->isLocal()) {
$this->deliverLocalAccount($status, $mention->getAccount());
}
});
// deliver to local followers
+ $localFollowers = $this->accountFinder->getLocalFollowersOf($author);
foreach ($localFollowers as $follower) {
$this->deliverLocalAccount($status, $follower->getAccount());
};