X-Git-Url: https://git.mxchange.org/?p=quix0rs-gnu-social.git;a=blobdiff_plain;f=plugins%2FActivity%2FActivityPlugin.php;fp=plugins%2FActivity%2FActivityPlugin.php;h=6805b4fe07d30b546578b2db44367dfc59803c4d;hp=5144eb46662f3f86a4c1c25969b008aef3da4c99;hb=4160a3fb730113f3d712bd777884c4b0482f6df1;hpb=abd90bbdf562614755802885dfb5673645df8575
diff --git a/plugins/Activity/ActivityPlugin.php b/plugins/Activity/ActivityPlugin.php
index 5144eb4666..6805b4fe07 100644
--- a/plugins/Activity/ActivityPlugin.php
+++ b/plugins/Activity/ActivityPlugin.php
@@ -72,7 +72,7 @@ class ActivityPlugin extends Plugin
// TRANS: Text for "started following" item in activity plugin.
// TRANS: %1$s is a profile URL, %2$s is a profile name,
// TRANS: %3$s is a profile URL, %4$s is a profile name.
- $rendered = sprintf(_m('%2$s started following %4$s.'),
+ $rendered = html_sprintf(_m('%2$s started following %4$s.'),
$profile->getUrl(),
$profile->getBestName(),
$other->getUrl(),
@@ -110,7 +110,7 @@ class ActivityPlugin extends Plugin
// TRANS: Text for "stopped following" item in activity plugin.
// TRANS: %1$s is a profile URL, %2$s is a profile name,
// TRANS: %3$s is a profile URL, %4$s is a profile name.
- $rendered = sprintf(_m('%2$s stopped following %4$s.'),
+ $rendered = html_sprintf(_m('%2$s stopped following %4$s.'),
$profile->getUrl(),
$profile->getBestName(),
$other->getUrl(),
@@ -155,7 +155,7 @@ class ActivityPlugin extends Plugin
// TRANS: Text for "stopped liking" item in activity plugin.
// TRANS: %1$s is a profile URL, %2$s is a profile name,
// TRANS: %3$s is a notice URL, %4$s is an author name.
- $rendered = sprintf(_m('%2$s stopped liking %4$s\'s update.'),
+ $rendered = html_sprintf(_m('%2$s stopped liking %4$s\'s update.'),
$profile->getUrl(),
$profile->getBestName(),
$notice->getUrl(),
@@ -183,7 +183,7 @@ class ActivityPlugin extends Plugin
'uri' => $uri,
'verb' => ActivityVerb::UNFAVORITE,
'object_type' => (($notice->verb == ActivityVerb::POST) ?
- $notice->object_type : ActivityObject::ACTIVITY)));
+ $notice->object_type : null)));
return true;
}
@@ -200,7 +200,7 @@ class ActivityPlugin extends Plugin
// TRANS: Text for "joined group" item in activity plugin.
// TRANS: %1$s is a profile URL, %2$s is a profile name,
// TRANS: %3$s is a group URL, %4$s is a group name.
- $rendered = sprintf(_m('%2$s joined the group %4$s.'),
+ $rendered = html_sprintf(_m('%2$s joined the group %4$s.'),
$profile->getUrl(),
$profile->getBestName(),
$group->homeUrl(),
@@ -241,7 +241,7 @@ class ActivityPlugin extends Plugin
// TRANS: Text for "left group" item in activity plugin.
// TRANS: %1$s is a profile URL, %2$s is a profile name,
// TRANS: %3$s is a group URL, %4$s is a group name.
- $rendered = sprintf(_m('%2$s left the group %4$s.'),
+ $rendered = html_sprintf(_m('%2$s left the group %4$s.'),
$profile->getUrl(),
$profile->getBestName(),
$group->homeUrl(),