- Replace a couple of strstr calls by strpos
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-
1331012289
return;
}
- if (!strstr($b['postopts'],'dwpost')) {
+ if (strpos($b['postopts'] ?? '', 'dwpost') === false) {
return;
}
}
} else {
// Comments are never exported when we don't import the GNU Social timeline
- if (!strstr($post['postopts'], 'statusnet') || ($post['parent'] != $post['id']) || $post['private']) {
+ if (strpos($post['postopts'] ?? '', 'statusnet') === false || ($post['parent'] != $post['id']) || $post['private']) {
$b['execute'] = false;
return;
}