Notice URIs are not necessarily URLs.

Let's use getUrl() for URL retrieval. May throw exceptions, but
only if it's a Notice that cannot be linked like that anyway.
This commit is contained in:
Mikael Nordfeldth
2014-04-30 20:44:23 +02:00
parent 1acffa9c7a
commit b77a09fdee
7 changed files with 8 additions and 8 deletions

View File

@@ -142,7 +142,7 @@ class Fave extends Managed_DataObject
// TRANS: %1$s is a user nickname or full name, %2$s is a notice URI.
$act->content = sprintf(_('%1$s marked notice %2$s as a favorite.'),
$profile->getBestName(),
$notice->uri);
$notice->getUrl());
$act->actor = ActivityObject::fromProfile($profile);
$act->objects[] = ActivityObject::fromNotice($notice);