[Posting] Don't sanitize on storage

We prefer to have the original input in database and sanitize on output when appropriate
This commit is contained in:
Diogo Peralta Cordeiro 2021-05-01 22:53:08 +01:00
parent 4397d12fa4
commit 3f565442d2
1 changed files with 0 additions and 1 deletions

View File

@ -104,7 +104,6 @@ END;
*/
public static function storeNote(int $actor_id, ?string $content, array $attachments, bool $is_local, ?int $reply_to = null, ?int $repeat_of = null)
{
$content = Security::sanitize($content);
$note = Note::create([
'gsactor_id' => $actor_id,
'content' => $content,