Don't check the date on regular feeds
authorMichael <heluecht@pirati.ca>
Sat, 11 Jul 2020 16:29:18 +0000 (16:29 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 11 Jul 2020 16:29:18 +0000 (16:29 +0000)
src/Protocol/OStatus.php

index 0b9a45f..0d2b1ae 100644 (file)
@@ -2200,7 +2200,7 @@ class OStatus
                        $last_update = 'now -30 days';
                }
 
-               $check_date = DateTimeFormat::utc($last_update);
+               $check_date = $feed_mode ? '' : DateTimeFormat::utc($last_update);
                $authorid = Contact::getIdForURL($owner["url"], 0, true);
 
                $condition = ["`uid` = ? AND `received` > ? AND NOT `deleted`