mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
better handling of dead contacts
This commit is contained in:
parent
79e2ae3791
commit
be090cc851
6 changed files with 91 additions and 65 deletions
|
@ -139,6 +139,10 @@ function terminate_friendship($user,$self,$contact) {
|
|||
|
||||
if(! function_exists('mark_for_death')) {
|
||||
function mark_for_death($contact) {
|
||||
|
||||
if($contact['archive'])
|
||||
return;
|
||||
|
||||
if($contact['term-date'] == '0000-00-00 00:00:00') {
|
||||
q("UPDATE `contact` SET `term-date` = '%s' WHERE `id` = %d LIMIT 1",
|
||||
dbesc(datetime_convert()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue