From 7cbe0a2f79010f512a70446d51e11704f71508aa Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 30 Dec 2021 22:31:11 +0200 Subject: [PATCH] update post validation message --- src/application/controller/api/post/add.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application/controller/api/post/add.php b/src/application/controller/api/post/add.php index 0dff51e..6224197 100644 --- a/src/application/controller/api/post/add.php +++ b/src/application/controller/api/post/add.php @@ -11,7 +11,7 @@ if (isset($_SESSION['userName'])) { $response = [ 'success' => false, - 'message' => _('Max 140 chars per message') + 'message' => _('Post message must contain from 1 to 140 chars') ]; } else if (!$userPosts = $_twister->getPosts([$_SESSION['userName']], 1)) {