mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
[various] Fix PHP 8 deprecation warnings
This commit is contained in:
parent
e8daa6b97d
commit
f4130a9724
4 changed files with 6 additions and 7 deletions
|
@ -145,7 +145,7 @@ function diaspora_hook_fork(App $a, array &$b)
|
|||
$post = $b['data'];
|
||||
|
||||
if ($post['deleted'] || $post['private'] || ($post['created'] !== $post['edited']) ||
|
||||
!strstr($post['postopts'], 'diaspora') || ($post['parent'] != $post['id'])) {
|
||||
!strstr($post['postopts'] ?? '', 'diaspora') || ($post['parent'] != $post['id'])) {
|
||||
$b['execute'] = false;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue