From: Marcel van der Boom Date: Tue, 14 Dec 2010 13:27:37 +0000 (+0100) Subject: Include a link in the plain text too for (un)favored notices, (un)subbed groups etc. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=82db24831bed70e9828192868578241d9006eff0;p=quix0rs-gnu-social.git Include a link in the plain text too for (un)favored notices, (un)subbed groups etc. --- diff --git a/ActivityPlugin.php b/ActivityPlugin.php index c6d79f0cd8..c5f98f8617 100644 --- a/ActivityPlugin.php +++ b/ActivityPlugin.php @@ -96,8 +96,9 @@ class ActivityPlugin extends Plugin $rendered = sprintf(_m('Started following %s.'), $other->profileurl, $other->getBestName()); - $content = sprintf(_m('Started following %s.'), - $other->getBestName()); + $content = sprintf(_m('Started following %s : %s'), + $other->getBestName(), + $other->profileurl); $notice = Notice::saveNew($user->id, $content, @@ -118,8 +119,9 @@ class ActivityPlugin extends Plugin $rendered = sprintf(_m('Stopped following %s.'), $other->profileurl, $other->getBestName()); - $content = sprintf(_m('Stopped following %s.'), - $other->getBestName()); + $content = sprintf(_m('Stopped following %s : %s'), + $other->getBestName(), + $other->profileurl); $notice = Notice::saveNew($user->id, $content, @@ -142,8 +144,9 @@ class ActivityPlugin extends Plugin $rendered = sprintf(_m('Liked %s\'s status.'), $notice->bestUrl(), $author->getBestName()); - $content = sprintf(_m('Liked %s\'s status.'), - $author->getBestName()); + $content = sprintf(_m('Liked %s\'s status: %s'), + $author->getBestName(), + $notice->bestUrl()); $notice = Notice::saveNew($user->id, $content, @@ -166,8 +169,9 @@ class ActivityPlugin extends Plugin $rendered = sprintf(_m('Stopped liking %s\'s status.'), $notice->bestUrl(), $author->getBestName()); - $content = sprintf(_m('Stopped liking %s\'s status.'), - $author->getBestName()); + $content = sprintf(_m('Stopped liking %s\'s status: %s'), + $author->getBestName(), + $notice->bestUrl()); $notice = Notice::saveNew($user->id, $content, @@ -186,8 +190,9 @@ class ActivityPlugin extends Plugin $rendered = sprintf(_m('Joined the group "%s".'), $group->homeUrl(), $group->getBestName()); - $content = sprintf(_m('Joined the group %s.'), - $group->getBestName()); + $content = sprintf(_m('Joined the group %s : %s'), + $group->getBestName(), + $group->homeUrl()); $notice = Notice::saveNew($user->id, $content, @@ -205,8 +210,9 @@ class ActivityPlugin extends Plugin $rendered = sprintf(_m('Left the group "%s".'), $group->homeUrl(), $group->getBestName()); - $content = sprintf(_m('Left the group "%s".'), - $group->getBestName()); + $content = sprintf(_m('Left the group "%s" : %s'), + $group->getBestName(), + $group->homeUrl()); $notice = Notice::saveNew($user->id, $content, diff --git a/Notice_activity.php b/Notice_activity.php index abc5f59c8f..d1256228c5 100644 --- a/Notice_activity.php +++ b/Notice_activity.php @@ -152,3 +152,4 @@ class Notice_activity extends Memcached_DataObject } } } +?> \ No newline at end of file