aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/MessageFilter.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2025-04-18 21:19:38 +0200
committerMario Vavti <mario@mariovavti.com>2025-04-18 21:19:38 +0200
commitd7aff9a4dd30a624a724edd638e41cf66add9b6b (patch)
tree1e8c7be6cc8a64ae6c1f0d974320bf3e2ed749e1 /Zotlabs/Lib/MessageFilter.php
parenta4a7794315538fc840cc002f9823fd8107d345bd (diff)
downloadvolse-hubzilla-d7aff9a4dd30a624a724edd638e41cf66add9b6b.tar.gz
volse-hubzilla-d7aff9a4dd30a624a724edd638e41cf66add9b6b.tar.bz2
volse-hubzilla-d7aff9a4dd30a624a724edd638e41cf66add9b6b.zip
fix wrong logic
Diffstat (limited to 'Zotlabs/Lib/MessageFilter.php')
-rw-r--r--Zotlabs/Lib/MessageFilter.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/MessageFilter.php b/Zotlabs/Lib/MessageFilter.php
index c07de75ab..da7181f78 100644
--- a/Zotlabs/Lib/MessageFilter.php
+++ b/Zotlabs/Lib/MessageFilter.php
@@ -44,7 +44,7 @@ class MessageFilter {
}
elseif (str_starts_with($word, 'until=')) {
$until = strtotime(trim(substr($word, 6)));
- if ($until < strtotime($item['created'])) {
+ if ($until > strtotime($item['created'])) {
return false;
}
}
@@ -98,7 +98,7 @@ class MessageFilter {
}
elseif (str_starts_with($word, 'until=')) {
$until = strtotime(trim(substr($word, 6)));
- if ($until < strtotime($item['created'])) {
+ if ($until > strtotime($item['created'])) {
return true;
}
}