mirror of
https://github.com/friendica/friendica
synced 2025-04-22 05:10:10 +00:00
Maybe fix for:
"Argument 1 passed to Friendica\Model\ItemURI::getIdByURI() must be of the type string, null given, called in Processor.php line 1219"
This commit is contained in:
parent
9691bb06fb
commit
41f34c4261
3 changed files with 6 additions and 2 deletions
|
@ -1216,7 +1216,7 @@ class Processor
|
|||
}
|
||||
|
||||
$replyto = JsonLD::fetchElement($activity['as:object'], 'as:inReplyTo', '@id');
|
||||
$uriid = ItemURI::getIdByURI($replyto);
|
||||
$uriid = ItemURI::getIdByURI($replyto ?? '');
|
||||
if (Post::exists(['uri-id' => $uriid])) {
|
||||
Logger::info('Post is a reply to an existing post - accepted', ['id' => $id, 'uri-id' => $uriid, 'replyto' => $replyto]);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue