Remove the "discard" button for contact requests from Diaspora.
This commit is contained in:
parent
62b6bbeef0
commit
ba5780c4a1
3 changed files with 10 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue