X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fnotifications.php;h=396361e91b5bda012716767d3c2f677a8d2c6e29;hb=af41e5ed830e2264de3018d2a34b87ecfeb69554;hp=0c08b66ce0459d9b83fbb8bea5a3b760221f79ad;hpb=61a01141d7e897c30b5931b66675cbb09d6368b8;p=friendica.git diff --git a/mod/notifications.php b/mod/notifications.php index 0c08b66ce0..396361e91b 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -5,6 +5,8 @@ * @brief The notifications module */ +use Friendica\App; + require_once("include/NotificationsManager.php"); require_once("include/contact_selectors.php"); require_once("include/network.php"); @@ -223,6 +225,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 +263,7 @@ function notifications_content(App $a) { '$approve' => t('Approve'), '$note' => $it['note'], '$ignore' => t('Ignore'), - '$discard' => t('Discard'), + '$discard' => $discard, )); break; @@ -292,7 +300,7 @@ function notifications_content(App $a) { '$item_link' => $it['link'], '$item_image' => $it['image'], '$item_url' => $it['url'], - '$item_text' => htmlentities($it['text']), + '$item_text' => $it['text'], '$item_when' => $it['when'], '$item_ago' => $it['ago'], '$item_seen' => $it['seen'],