diff --git a/mod/notifications.php b/mod/notifications.php index bab5fd6274..fdaec05ccd 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -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; diff --git a/view/templates/intros.tpl b/view/templates/intros.tpl index e3933e3815..2d0bf9bd06 100644 --- a/view/templates/intros.tpl +++ b/view/templates/intros.tpl @@ -14,7 +14,7 @@
- +{{if $discard}}{{/if}}
diff --git a/view/theme/frio/templates/intros.tpl b/view/theme/frio/templates/intros.tpl index 8fd7ee6090..1502a55aa2 100644 --- a/view/theme/frio/templates/intros.tpl +++ b/view/theme/frio/templates/intros.tpl @@ -13,7 +13,7 @@
- + {{if $discard}}{{/if}}

{{$fullname}}

@@ -70,7 +70,7 @@
-   + {{if $discard}} {{/if}}