From a6b96f716a6c68d34f014585425732b8ef30e380 Mon Sep 17 00:00:00 2001 From: Slava Petrov Date: Fri, 20 Dec 2024 17:47:21 +0300 Subject: [PATCH] fuck conflict --- Web/Presenters/OpenVKPresenter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Web/Presenters/OpenVKPresenter.php b/Web/Presenters/OpenVKPresenter.php index 3b42608c..1ca60265 100644 --- a/Web/Presenters/OpenVKPresenter.php +++ b/Web/Presenters/OpenVKPresenter.php @@ -210,6 +210,7 @@ abstract class OpenVKPresenter extends SimplePresenter if(OPENVK_ROOT_CONF['openvk']['preferences']['news']['show']) { $post = (new Posts)->getPostsFromUsersWall(-OPENVK_ROOT_CONF['openvk']['preferences']['news']['groupId'], 1, 1); $post = iterator_to_array($post)[0]; + $text = wordwrap($post->getText(false), 150, '\n', false); $text = explode('\n', $text)[0]; @@ -373,4 +374,4 @@ abstract class OpenVKPresenter extends SimplePresenter return false; } } -} +}