From: Mikael Nordfeldth Date: Mon, 14 Jul 2014 11:29:03 +0000 (+0200) Subject: Store activity content into Notice table in saveActivity X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e0a10f775f8dce8529c3c38f7f2df51e9765efb8;p=quix0rs-gnu-social.git Store activity content into Notice table in saveActivity --- diff --git a/classes/Notice.php b/classes/Notice.php index 01827245c3..df7105116d 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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