mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:50:17 +00:00
Standards and a new function to fetch content
This commit is contained in:
parent
5743bb0dae
commit
d643e00d33
9 changed files with 59 additions and 25 deletions
|
@ -246,7 +246,7 @@ class DFRN
|
|||
|
||||
if (!empty($ids)) {
|
||||
$ret = Item::select(Item::DELIVER_FIELDLIST, ['id' => $ids]);
|
||||
$items = dba::inArray($ret);
|
||||
$items = Item::inArray($ret);
|
||||
} else {
|
||||
$items = [];
|
||||
}
|
||||
|
@ -330,7 +330,7 @@ class DFRN
|
|||
}
|
||||
|
||||
$ret = Item::select(Item::DELIVER_FIELDLIST, $condition);
|
||||
$items = dba::inArray($ret);
|
||||
$items = Item::inArray($ret);
|
||||
if (!DBM::is_result($items)) {
|
||||
killme();
|
||||
}
|
||||
|
@ -938,7 +938,7 @@ class DFRN
|
|||
|
||||
if (($item['parent'] != $item['id']) || ($item['parent-uri'] !== $item['uri']) || (($item['thr-parent'] !== '') && ($item['thr-parent'] !== $item['uri']))) {
|
||||
$parent_item = (($item['thr-parent']) ? $item['thr-parent'] : $item['parent-uri']);
|
||||
$parent = Item::selectFirst(['guid','plink'], ['uri' => $parent_item, 'uid' => $item['uid']]);
|
||||
$parent = Item::selectFirst(['guid', 'plink'], ['uri' => $parent_item, 'uid' => $item['uid']]);
|
||||
$attributes = ["ref" => $parent_item, "type" => "text/html",
|
||||
"href" => $parent['plink'],
|
||||
"dfrn:diaspora_guid" => $parent['guid']];
|
||||
|
|
|
@ -2218,7 +2218,7 @@ class Diaspora
|
|||
|
||||
// Send all existing comments and likes to the requesting server
|
||||
$comments = Item::select(['id', 'verb', 'self'], ['parent' => $item['id']]);
|
||||
while ($comment = dba::fetch($comments)) {
|
||||
while ($comment = Item::fetch($comments)) {
|
||||
if ($comment['id'] == $comment['parent']) {
|
||||
continue;
|
||||
}
|
||||
|
@ -2771,7 +2771,7 @@ class Diaspora
|
|||
return false;
|
||||
}
|
||||
|
||||
while ($item = dba::fetch($r)) {
|
||||
while ($item = Item::fetch($r)) {
|
||||
// Fetch the parent item
|
||||
$parent = Item::selectFirst(['author-link'], ['id' => $item["parent"]]);
|
||||
|
||||
|
|
|
@ -2152,7 +2152,7 @@ class OStatus
|
|||
$ret = Item::select([], $condition, $params);
|
||||
}
|
||||
|
||||
$items = dba::inArray($ret);
|
||||
$items = Item::inArray($ret);
|
||||
|
||||
$doc = new DOMDocument('1.0', 'utf-8');
|
||||
$doc->formatOutput = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue