remove the channel introduction on the system notifications page. "Hubzilla, George commented on your status 20 minutes ago". We need the channel introduction (in this case "Hubzilla," in emails for situations where one person controls a lot of channels. We don't need it on the web notification summary; where you're only viewing notifications for a single given channel.

This commit is contained in:
Hubzilla 2017-01-21 15:20:59 -08:00
parent 88caa14030
commit b513662b52
2 changed files with 4 additions and 3 deletions

View file

@ -2,8 +2,6 @@
namespace Zotlabs\Lib;
use \Zotlabs\Storage\GitRepo as GitRepo;
define ( 'NWIKI_ITEM_RESOURCE_TYPE', 'nwiki' );
class NativeWiki {

View file

@ -23,10 +23,13 @@ class Notifications extends \Zotlabs\Web\Controller {
if($r) {
$notifications_available = 1;
foreach ($r as $it) {
$x = strip_tags(bbcode($it['msg']));
if(strpos($x,','))
$x = substr($x,strpos($x,',')+1);
$notif_content .= replace_macros(get_markup_template('notify.tpl'),array(
'$item_link' => z_root().'/notify/view/'. $it['id'],
'$item_image' => $it['photo'],
'$item_text' => strip_tags(bbcode($it['msg'])),
'$item_text' => $x,
'$item_when' => relative_date($it['created'])
));
}