mirror of
https://github.com/friendica/friendica
synced 2025-04-27 09:10:12 +00:00
We can now define the days after a contact is archived
This commit is contained in:
parent
ea9b4cc523
commit
869d8ab12d
4 changed files with 10 additions and 7 deletions
|
@ -306,7 +306,9 @@ class Contact extends BaseObject
|
|||
*/
|
||||
|
||||
/// @todo Check for contact vitality via probing
|
||||
$expiry = $contact['term-date'] . ' + 32 days ';
|
||||
$archival_days = Config::get('system', 'archival_days', 32);
|
||||
|
||||
$expiry = $contact['term-date'] . ' + ' . $archival_days . ' days ';
|
||||
if (DateTimeFormat::utcNow() > DateTimeFormat::utc($expiry)) {
|
||||
/* Relationship is really truly dead. archive them rather than
|
||||
* delete, though if the owner tries to unarchive them we'll start
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue