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

Commit e0a10f77 authored by mattl's avatar mattl

Store activity content into Notice table in saveActivity

parent ac44695c
......@@ -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
......
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