mirror of
https://github.com/friendica/friendica
synced 2025-04-26 06:30:11 +00:00
"parent = id" is replaced with gravity check
This commit is contained in:
parent
bdfe47dcfd
commit
0acb5d4558
6 changed files with 12 additions and 9 deletions
|
@ -960,7 +960,7 @@ class DFRN
|
|||
$dfrnowner = self::addEntryAuthor($doc, "dfrn:owner", $item["owner-link"], $item);
|
||||
$entry->appendChild($dfrnowner);
|
||||
|
||||
if (($item['parent'] != $item['id']) || ($item['parent-uri'] !== $item['uri']) || (($item['thr-parent'] !== '') && ($item['thr-parent'] !== $item['uri']))) {
|
||||
if ($item['gravity'] != GRAVITY_PARENT) {
|
||||
$parent_item = (($item['thr-parent']) ? $item['thr-parent'] : $item['parent-uri']);
|
||||
$parent = Item::selectFirst(['guid', 'plink'], ['uri' => $parent_item, 'uid' => $item['uid']]);
|
||||
$attributes = ["ref" => $parent_item, "type" => "text/html",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue