parse issue

This commit is contained in:
nobody 2021-04-13 21:20:43 -07:00
parent 3a51efd9bf
commit db7cdca177

View file

@ -2599,7 +2599,7 @@ class Activity {
if (isset($act->obj['commentPolicy'])) {
$until = strpos($act->obj['commentPolicy'],'until=');
if ($until !== false) {
$item['comments_closed'] = datetime_convert('UTC','UTC',substr($act->obj['commentPolicy'],'until=') + 6);
$item['comments_closed'] = datetime_convert('UTC','UTC',substr($act->obj['commentPolicy'],$until + 6));
if ($item['comments_closed'] < datetime_convert()) {
$item['nocomment'] = true;
}