forked from GNUsocial/gnu-social
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:
@@ -1075,7 +1075,7 @@ class OStatusPlugin extends Plugin
|
||||
// TRANS: %1$s is the unfavoring user's name, %2$s is URI to the no longer favored notice.
|
||||
$act->content = sprintf(_m('%1$s no longer likes %2$s.'),
|
||||
$profile->getBestName(),
|
||||
$notice->uri);
|
||||
$notice->getUrl());
|
||||
|
||||
$act->actor = ActivityObject::fromProfile($profile);
|
||||
$act->object = ActivityObject::fromNotice($notice);
|
||||
|
Reference in New Issue
Block a user