Unifying HTML stripping functions to common_strip_html

This commit is contained in:
Mikael Nordfeldth
2014-07-14 13:52:23 +02:00
parent e0a10f775f
commit ae62b91940
9 changed files with 23 additions and 27 deletions

View 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');