]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Local favoriting fills out content to saveActivity
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 14 Jul 2014 11:59:50 +0000 (13:59 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 14 Jul 2014 12:05:47 +0000 (14:05 +0200)
plugins/Favorite/actions/favor.php

index a7f0cd7fb26b7b1d8a173568f3b63629d321d506..98f88183e36b455009a106df4264dae3cc3c1c66 100644 (file)
@@ -85,6 +85,11 @@ class FavorAction extends FormAction
         $act->verb = ActivityVerb::FAVORITE;
         $act->title = ActivityUtils::verbToTitle($act->verb);
         $act->time = strtotime($now);
+        // TRANS: Notification given when a user marks a notice as favorite.
+        // 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.'),
+                                $this->scoped->getBestName(), $this->target->getUrl());
+
 
         $stored = Notice::saveActivity($act, $this->scoped,
                                         array('uri'=>$act->id));