aboutsummaryrefslogtreecommitdiffstats
path: root/include/Contact.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-13 19:59:20 -0700
committerfriendica <info@friendica.com>2012-06-13 19:59:20 -0700
commit7d8b087f4a90dfa8b69bb7660cf68a2b021a31a2 (patch)
tree852daf8fb843b2f69aa798c69b9bf89d81f17978 /include/Contact.php
parent24bf4632af7b060c9d0cbc39ff9cbc5baee741c3 (diff)
downloadvolse-hubzilla-7d8b087f4a90dfa8b69bb7660cf68a2b021a31a2.tar.gz
volse-hubzilla-7d8b087f4a90dfa8b69bb7660cf68a2b021a31a2.tar.bz2
volse-hubzilla-7d8b087f4a90dfa8b69bb7660cf68a2b021a31a2.zip
fix to imported youtube videos, updating of contact profile photos, do not remove "dead" contacts but archive them.
Diffstat (limited to 'include/Contact.php')
-rw-r--r--include/Contact.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/Contact.php b/include/Contact.php
index 675d1c81e..3b255a072 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -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
+
+ q("update contact set `archive` = 1 where id = %d limit 1",
+ intval($contact['id'])
+ );
- contact_remove($contact['id']);
+ //contact_remove($contact['id']);
}
}