We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit b0c4a359 authored by mattl's avatar mattl

Local favoriting fills out content to saveActivity

parent ae62b919
......@@ -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,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment