forked from GNUsocial/gnu-social
Merge branch 'master' of git.gnu.io:gnu/gnu-social into nightly
Conflicts: plugins/OStatus/OStatusPlugin.php master vs. nightly thing
This commit is contained in:
@@ -295,7 +295,7 @@ class FeedSub extends Managed_DataObject
|
||||
{
|
||||
$fs = new FeedSub();
|
||||
// the "" empty string check is because we historically haven't saved unsubscribed feeds as NULL
|
||||
$fs->whereAdd('sub_end IS NOT NULL AND sub_end!="" AND sub_end < NOW() - INTERVAL 1 day');
|
||||
$fs->whereAdd('sub_end IS NOT NULL AND sub_end!="" AND sub_end < NOW() + INTERVAL 1 day');
|
||||
if (!$fs->find()) { // find can be both false and 0, depending on why nothing was found
|
||||
throw new NoResultException($fs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user