mirror of
https://github.com/friendica/friendica
synced 2024-11-19 00:23:47 +00:00
Merge pull request #9780 from annando/alternate-9775
Create plink if missing
This commit is contained in:
commit
884419a6bb
1 changed files with 5 additions and 1 deletions
|
@ -1265,7 +1265,7 @@ class Diaspora
|
||||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||||
* @throws \ImagickException
|
* @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);
|
$contact = Contact::getByURL($addr);
|
||||||
if (empty($contact)) {
|
if (empty($contact)) {
|
||||||
|
@ -2436,6 +2436,10 @@ class Diaspora
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($original_item['plink'])) {
|
||||||
|
$original_item['plink'] = self::plink($root_author, $root_guid);
|
||||||
|
}
|
||||||
|
|
||||||
$datarray = [];
|
$datarray = [];
|
||||||
|
|
||||||
$datarray["uid"] = $importer["uid"];
|
$datarray["uid"] = $importer["uid"];
|
||||||
|
|
Loading…
Reference in a new issue