mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
Separate section for contacts without any relationship
This commit is contained in:
parent
d971a2cc5c
commit
649bbaa4c3
3 changed files with 143 additions and 129 deletions
|
@ -304,6 +304,14 @@ class Contact extends BaseModule
|
|||
$sql_extra .= " AND `rel` = ?";
|
||||
$sql_values[] = Model\Contact::FRIEND;
|
||||
break;
|
||||
case 'nothing':
|
||||
$sql_extra .= " AND `rel` = ?";
|
||||
$sql_values[] = Model\Contact::NOTHING;
|
||||
break;
|
||||
default:
|
||||
$sql_extra .= " AND `rel` != ?";
|
||||
$sql_values[] = Model\Contact::NOTHING;
|
||||
break;
|
||||
}
|
||||
|
||||
if ($circle) {
|
||||
|
@ -407,6 +415,7 @@ class Contact extends BaseModule
|
|||
case 'followers': $header = DI::l10n()->t('Followers'); break;
|
||||
case 'following': $header = DI::l10n()->t('Following'); break;
|
||||
case 'mutuals': $header = DI::l10n()->t('Mutual friends'); break;
|
||||
case 'nothing': $header = DI::l10n()->t('No relationship'); break;
|
||||
default: $header = DI::l10n()->t('Contacts');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue