]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
Unifying HTML stripping functions to common_strip_html
[quix0rs-gnu-social.git] / classes / Notice.php
index df7105116d9b0f475411ea6076436c783ef179c4..88a1394b88b3a8b7767c0cec73fa7c90c69bc5b7 100644 (file)
@@ -769,9 +769,10 @@ class Notice extends Managed_DataObject
         $stored->verb = $act->verb;
 
         // Use the local user's shortening preferences, if applicable.
-        $stored->content = $actor->isLocal()
+        $stored->rendered = $actor->isLocal()
                                 ? $actor->shortenLinks($act->content)
                                 : $act->content;
+        $stored->content = common_strip_html($stored->rendered);
 
         $autosource = common_config('public', 'autosource');