Store activity content into Notice table in saveActivity

This commit is contained in:
Mikael Nordfeldth 2014-07-14 13:29:03 +02:00
parent ac44695c44
commit e0a10f775f

View File

@ -768,6 +768,11 @@ class Notice extends Managed_DataObject
$stored->url = $url;
$stored->verb = $act->verb;
// Use the local user's shortening preferences, if applicable.
$stored->content = $actor->isLocal()
? $actor->shortenLinks($act->content)
: $act->content;
$autosource = common_config('public', 'autosource');
// Sandboxed are non-false, but not 1, either