Create plink if missing

2022.09-rc
Michael 2021-01-11 20:14:17 +00:00
rodzic 56fbd0026a
commit 83266b87af
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -1265,7 +1265,7 @@ class Diaspora
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
* @throws \ImagickException
*/
private static function plink($addr, $guid, $parent_guid = '')
private static function plink(string $addr, string $guid, string $parent_guid = '')
{
$contact = Contact::getByURL($addr);
if (empty($contact)) {
@ -2436,6 +2436,10 @@ class Diaspora
return false;
}
if (empty($original_item['plink'])) {
$original_item['plink'] = self::plink($root_author, $root_guid);
}
$datarray = [];
$datarray["uid"] = $importer["uid"];