mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
fix wrong logic
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,22 +77,22 @@ class MessageFilterTest extends UnitTestCase {
|
||||
'until=2025-04-18 20:49:00 in excl' => [
|
||||
'',
|
||||
'until=2025-04-18 20:49:00',
|
||||
false
|
||||
true
|
||||
],
|
||||
'until=2025-04-18 20:51:00 in excl' => [
|
||||
'',
|
||||
'until=2025-04-18 20:51:00',
|
||||
true
|
||||
false
|
||||
],
|
||||
'until=2025-04-18 20:49:00 in incl' => [
|
||||
'until=2025-04-18 20:49:00',
|
||||
'',
|
||||
true
|
||||
false
|
||||
],
|
||||
'until=2025-04-18 20:51:00 in incl' => [
|
||||
'until=2025-04-18 20:51:00',
|
||||
'',
|
||||
false
|
||||
true
|
||||
],
|
||||
'hashtag in incl' => [
|
||||
'#grasshopper',
|
||||
|
||||
4
vendor/composer/installed.php
vendored
4
vendor/composer/installed.php
vendored
@@ -3,7 +3,7 @@
|
||||
'name' => 'zotlabs/hubzilla',
|
||||
'pretty_version' => 'dev-10.2RC',
|
||||
'version' => 'dev-10.2RC',
|
||||
'reference' => 'c1d87fa65d6e2b65e0601b75772b98cf745c39dd',
|
||||
'reference' => 'a4a7794315538fc840cc002f9823fd8107d345bd',
|
||||
'type' => 'application',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
@@ -430,7 +430,7 @@
|
||||
'zotlabs/hubzilla' => array(
|
||||
'pretty_version' => 'dev-10.2RC',
|
||||
'version' => 'dev-10.2RC',
|
||||
'reference' => 'c1d87fa65d6e2b65e0601b75772b98cf745c39dd',
|
||||
'reference' => 'a4a7794315538fc840cc002f9823fd8107d345bd',
|
||||
'type' => 'application',
|
||||
'install_path' => __DIR__ . '/../../',
|
||||
'aliases' => array(),
|
||||
|
||||
Reference in New Issue
Block a user