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
1 changed files with 5 additions and 0 deletions

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