Skip to content

Commit

Permalink
fixed: notification should check for entity
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Aug 14, 2024
1 parent 667c5fc commit a0eb07e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,13 @@ public function getUnsentTagsForEntity(): array {
return $this->unsent_tags;
}

$this->unsent_tags = [];

$entity = $this->getNotificationEntity();
if ($entity instanceof \ElggEntity) {
$this->unsent_tags = tag_tools_get_unsent_notification_tags($entity);
}

$this->unsent_tags = tag_tools_get_unsent_notification_tags($entity);
return $this->unsent_tags;
}

Expand Down

0 comments on commit a0eb07e

Please sign in to comment.