wrong attribution on likes of comments in email notifications. Let's also call the thing they liked a comment instead of a status

This commit is contained in:
friendica
2013-05-28 01:40:27 -07:00
parent 9fda0a3fd5
commit 7a011a99c7
4 changed files with 27 additions and 36 deletions

View File

@@ -81,6 +81,22 @@ function escape_tags($string) {
}
function purify_html($s) {
require_once('library/HTMLPurifier.auto.php');
require_once('include/html2bbcode.php');
// FIXME this function has html output, not bbcode - so safely purify these
// $s = html2bb_video($s);
// $s = oembed_html2bbcode($s);
$config = HTMLPurifier_Config::createDefault();
$config->set('Cache.DefinitionImpl', null);
$purifier = new HTMLPurifier($config);
return $purifier->purify($s);
}
// generate a string that's random, but usually pronounceable.
// used to generate initial passwords