Skip to content

A free, self-hostable news aggregator…

Fix action filter when filtering on author (#2863)

Alexandre Alapetitebe582713feb9
diff --git a/app/Models/Entry.php b/app/Models/Entry.php
index af130578f..9540e0ed5 100644
--- a/app/Models/Entry.php
+++ b/app/Models/Entry.php
@@ -230,12 +230,12 @@ class FreshRSS_Entry extends Minz_Model {
}
if ($ok && $filter->getAuthor()) {
foreach ($filter->getAuthor() as $author) {
- $ok &= stripos($this->authors, $author) !== false;
+ $ok &= stripos(implode(';', $this->authors), $author) !== false;
}
}
if ($ok && $filter->getNotAuthor()) {
foreach ($filter->getNotAuthor() as $author) {
- $ok &= stripos($this->authors, $author) === false;
+ $ok &= stripos(implode(';', $this->authors), $author) === false;
}
}
if ($ok && $filter->getIntitle()) {