mirror of
https://github.com/friendica/friendica
synced 2025-05-09 16:24:12 +02: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
|
@ -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"]]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue