We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 6d47fadf authored by Jean Baptiste Favre's avatar Jean Baptiste Favre

Fix introduced bug, trying to shorten an empty status.

parent 54374365
......@@ -285,7 +285,7 @@ class ApiStatusesUpdateAction extends ApiAuthAction
}
/* Do call shortenlinks here & check notice length since notice is about to be saved & sent */
$status_shortened = $this->auth_user->shortenlinks($status_shortened);
$status_shortened = $this->auth_user->shortenlinks($this->status);
if (Notice::contentTooLong($status_shortened)) {
if (isset($upload)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment