Remove the "discard" button for contact requests from Diaspora.

This commit is contained in:
Michael 2017-04-28 08:36:10 +00:00
commit ba5780c4a1
3 changed files with 10 additions and 4 deletions

View file

@ -223,6 +223,12 @@ function notifications_content(App $a) {
$header .= " (".network_to_name($it['network'], $it['url']).")";
if ($it['network'] != NETWORK_DIASPORA) {
$discard = t('Discard');
} else {
$discard = '';
}
$notif_content[] = replace_macros($tpl, array(
'$header' => htmlentities($header),
'$str_notifytype' => t('Notification type: '),
@ -255,7 +261,7 @@ function notifications_content(App $a) {
'$approve' => t('Approve'),
'$note' => $it['note'],
'$ignore' => t('Ignore'),
'$discard' => t('Discard'),
'$discard' => $discard,
));
break;