VKAPI: Disable HTML output in prior to RAW output

RichText: Replace CR+LN with just LN because it causes graphical bugs in VK4ME
This commit is contained in:
veselcraft 2022-07-21 09:40:42 +03:00
parent 0b63c25d9e
commit 658b60d5f0
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E
2 changed files with 4 additions and 2 deletions

View file

@ -50,7 +50,7 @@ final class Wall extends VKAPIRequestHandler
"owner_id" => $post->getTargetWall(),
"date" => $post->getPublicationTime()->timestamp(),
"post_type" => "post",
"text" => $post->getText(),
"text" => $post->getText(false),
"can_edit" => 0, # TODO
"can_delete" => $post->canBeDeletedBy($this->getUser()),
"can_pin" => $post->canBePinnedBy($this->getUser()),
@ -214,7 +214,7 @@ final class Wall extends VKAPIRequestHandler
"owner_id" => $post->getTargetWall(),
"date" => $post->getPublicationTime()->timestamp(),
"post_type" => "post",
"text" => $post->getText(),
"text" => $post->getText(false),
"can_edit" => 0, # TODO
"can_delete" => $post->canBeDeletedBy($user),
"can_pin" => $post->canBePinnedBy($user),

View file

@ -75,6 +75,8 @@ trait TRichText
$text = $this->removeZalgo($text);
$text = nl2br($text);
} else {
$text = str_replace("\r\n","\n", $text);
}
if(OPENVK_ROOT_CONF["openvk"]["preferences"]["wall"]["christian"])