From: Joshua Judson Rosen Date: Mon, 24 Nov 2014 04:05:13 +0000 (-0500) Subject: UserEmailSummaryHandler: use $notice->getLocalUrl(), not getUrl() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2d7804b88ffcdcc8378f684da08f2936aa8347e6;p=quix0rs-gnu-social.git UserEmailSummaryHandler: use $notice->getLocalUrl(), not getUrl() getUrl() doesn't work on all notices anymore. --- diff --git a/plugins/EmailSummary/lib/useremailsummaryhandler.php b/plugins/EmailSummary/lib/useremailsummaryhandler.php index ec86e59d19..f900d93595 100644 --- a/plugins/EmailSummary/lib/useremailsummaryhandler.php +++ b/plugins/EmailSummary/lib/useremailsummaryhandler.php @@ -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',