From e0a10f775f8dce8529c3c38f7f2df51e9765efb8 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 14 Jul 2014 13:29:03 +0200 Subject: [PATCH] Store activity content into Notice table in saveActivity --- classes/Notice.php | 5 +++++ 1 file changed, 5 insertions(+) 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