provide single post view for pubstream and rewrite llink to point to /pubstream/?f=&mid=some_mid instead of /display/some_mid for pubs notifications

This commit is contained in:
Mario Vavti
2017-10-07 15:40:34 +02:00
parent dc2c6d00fe
commit 4c0e8a61ae
2 changed files with 45 additions and 24 deletions

View File

@@ -183,6 +183,7 @@ class Ping extends \Zotlabs\Web\Controller {
if($r) {
xchan_query($r);
foreach($r as $rr) {
$rr['llink'] = str_replace('display/', 'pubstream/?f=&mid=', $rr['llink']);
$result[] = \Zotlabs\Lib\Enotify::format($rr);
}
}