]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
UserEmailSummaryHandler: use $notice->getLocalUrl(), not getUrl()
authorJoshua Judson Rosen <rozzin@geekspace.com>
Mon, 24 Nov 2014 04:05:13 +0000 (23:05 -0500)
committerJoshua Judson Rosen <rozzin@geekspace.com>
Mon, 24 Nov 2014 04:28:30 +0000 (23:28 -0500)
getUrl() doesn't work on all notices anymore.

plugins/EmailSummary/lib/useremailsummaryhandler.php

index ec86e59d19edeaf50795236d48a47af64538cbf4..f900d93595108d3238493e419b96a08e1d0739fe 100644 (file)
@@ -173,7 +173,7 @@ class UserEmailSummaryHandler extends QueueHandler
             $out->text(' ');
             $out->raw($notice->rendered);
             $out->elementStart('div', array('style' => 'font-size: 0.8em; padding-top: 4px;'));
-            $noticeurl = $notice->getUrl();
+            $noticeurl = $notice->getLocalUrl();
             // above should always return an URL
             assert(!empty($noticeurl));
             $out->elementStart('a', array('rel' => 'bookmark',