Browse Source

update post validation message

main
ghost 3 years ago
parent
commit
7cbe0a2f79
  1. 2
      src/application/controller/api/post/add.php

2
src/application/controller/api/post/add.php

@ -11,7 +11,7 @@ if (isset($_SESSION['userName'])) {
$response = [ $response = [
'success' => false, '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)) { } else if (!$userPosts = $_twister->getPosts([$_SESSION['userName']], 1)) {

Loading…
Cancel
Save