fix to imported youtube videos, updating of contact profile photos, do not remove "dead" contacts but archive them.

This commit is contained in:
friendica
2012-06-13 19:59:20 -07:00
parent 24bf4632af
commit 7d8b087f4a
4 changed files with 105 additions and 34 deletions

View File

@@ -146,12 +146,23 @@ function mark_for_death($contact) {
);
}
else {
// TODO: We really should send a notification to the owner after 2-3 weeks
// so they won't be surprised when the contact vanishes and can take
// remedial action if this was a serious mistake or glitch
$expiry = $contact['term-date'] . ' + 32 days ';
if(datetime_convert() > datetime_convert('UTC','UTC',$expiry)) {
// relationship is really truly dead.
// archive them rather than delete
// though if the owner tries to unarchive them we'll start the whole process over again
contact_remove($contact['id']);
q("update contact set `archive` = 1 where id = %d limit 1",
intval($contact['id'])
);
//contact_remove($contact['id']);
}
}