]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Store activity content into Notice table in saveActivity
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 14 Jul 2014 11:29:03 +0000 (13:29 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 14 Jul 2014 11:29:03 +0000 (13:29 +0200)
classes/Notice.php

index 01827245c3117689b4d8806e744bbbe29ccd9cb4..df7105116d9b0f475411ea6076436c783ef179c4 100644 (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