]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Include a link in the plain text too for (un)favored notices, (un)subbed groups etc.
authorMarcel van der Boom <marcel@hsdev.com>
Tue, 14 Dec 2010 13:27:37 +0000 (14:27 +0100)
committerMarcel van der Boom <marcel@hsdev.com>
Tue, 14 Dec 2010 13:27:37 +0000 (14:27 +0100)
ActivityPlugin.php
Notice_activity.php

index c6d79f0cd800a387537fc1c5eaa7565f755192b7..c5f98f8617f7a1e113835a83f58b22916fe419fe 100644 (file)
@@ -96,8 +96,9 @@ class ActivityPlugin extends Plugin
             $rendered = sprintf(_m('<em>Started following <a href="%s">%s</a></em>.'),
                                 $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('<em>Stopped following <a href="%s">%s</a></em>.'),
                                 $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('<em>Liked <a href="%s">%s\'s status</a></em>.'),
                                 $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('<em>Stopped liking <a href="%s">%s\'s status</a></em>.'),
                                 $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('<em>Joined the group &quot;<a href="%s">%s</a>&quot;</em>.'),
                             $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('<em>Left the group &quot;<a href="%s">%s</a>&quot;</em>.'),
                             $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,
index abc5f59c8f50981024c29c217e7bd431e25c0089..d1256228c5db0b323895b3d7378d216df403f2f5 100644 (file)
@@ -152,3 +152,4 @@ class Notice_activity extends Memcached_DataObject
         }
     }
 }
+?>
\ No newline at end of file