mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:50:17 +00:00
merged from develop and increased DB-version
This commit is contained in:
commit
19209f6826
29 changed files with 3900 additions and 3515 deletions
|
@ -2087,13 +2087,6 @@ class DFRN
|
|||
|
||||
logger('Contacts are updated.');
|
||||
|
||||
// update items
|
||||
// This is an extreme performance killer
|
||||
Item::update(['owner-link' => $relocate["url"]], ['owner-link' => $old["url"], 'uid' => $importer["importer_uid"]]);
|
||||
Item::update(['author-link' => $relocate["url"]], ['author-link' => $old["url"], 'uid' => $importer["importer_uid"]]);
|
||||
|
||||
logger('Items are updated.');
|
||||
|
||||
/// @TODO
|
||||
/// merge with current record, current contents have priority
|
||||
/// update record, set url-updated
|
||||
|
|
|
@ -1543,13 +1543,6 @@ class Diaspora
|
|||
|
||||
logger('Contacts are updated.');
|
||||
|
||||
// update items
|
||||
// This is an extreme performance killer
|
||||
Item::update(['owner-link' => $data["url"]], ['owner-link' => $contact["url"], 'uid' => $importer["uid"]]);
|
||||
Item::update(['author-link' => $data["url"]], ['author-link' => $contact["url"], 'uid' => $importer["uid"]]);
|
||||
|
||||
logger('Items are updated.');
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -341,7 +341,7 @@ class OStatus
|
|||
$header["type"] = "remote";
|
||||
$header["wall"] = 0;
|
||||
$header["origin"] = 0;
|
||||
$header["gravity"] = GRAVITY_PARENT;
|
||||
$header["gravity"] = GRAVITY_COMMENT;
|
||||
|
||||
$first_child = $doc->firstChild->tagName;
|
||||
|
||||
|
@ -683,9 +683,9 @@ class OStatus
|
|||
}
|
||||
|
||||
$item["type"] = 'remote-comment';
|
||||
$item["gravity"] = GRAVITY_COMMENT;
|
||||
} else {
|
||||
$item["parent-uri"] = $item["uri"];
|
||||
$item["gravity"] = GRAVITY_PARENT;
|
||||
}
|
||||
|
||||
if (($item['author-link'] != '') && !empty($item['protocol'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue