From: Mikael Nordfeldth Date: Mon, 14 Jul 2014 11:59:50 +0000 (+0200) Subject: Local favoriting fills out content to saveActivity X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b0c4a35940d78425a8a2b7dea77da74419252231;p=quix0rs-gnu-social.git Local favoriting fills out content to saveActivity --- diff --git a/plugins/Favorite/actions/favor.php b/plugins/Favorite/actions/favor.php index a7f0cd7fb2..98f88183e3 100644 --- a/plugins/Favorite/actions/favor.php +++ b/plugins/Favorite/actions/favor.php @@ -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));