mirror of
https://github.com/friendica/friendica
synced 2025-04-29 11:44:24 +02:00
Some cleanup for archiving/unarchiving contacts
This commit is contained in:
parent
06d6d6c758
commit
5f9e87ea5a
3 changed files with 19 additions and 15 deletions
|
@ -1339,10 +1339,6 @@ class Diaspora
|
|||
if ($r) {
|
||||
$cid = $r[0]["id"];
|
||||
$network = $r[0]["network"];
|
||||
|
||||
// We are receiving content from a user that possibly is about to be terminated
|
||||
// This means the user is vital, so we remove a possible termination date.
|
||||
Contact::unmarkForArchival($r[0]);
|
||||
} else {
|
||||
$cid = $contact["id"];
|
||||
$network = NETWORK_DIASPORA;
|
||||
|
|
|
@ -151,11 +151,8 @@ class OStatus
|
|||
|
||||
// Only update the contacts if it is an OStatus contact
|
||||
if ($r && ($r['id'] > 0) && !$onlyfetch && ($contact["network"] == NETWORK_OSTATUS)) {
|
||||
// This contact is vital, so we awake it from the dead
|
||||
Contact::unmarkForArchival($contact);
|
||||
|
||||
// Update contact data
|
||||
|
||||
$current = $contact;
|
||||
unset($current['name-date']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue