Browse Source

Temporary fix for buggy addUrls(), see https://github.com/movim/movim/issues/877

pull/898/head
Timothée Jaussoin 6 years ago
parent
commit
9a19f4f6c5
  1. 6
      app/Message.php
  2. 1
      app/widgets/Chat/Chat.php

6
app/Message.php

@ -389,7 +389,13 @@ class Message extends Model
public function addUrls()
{
if (is_string($this->body)) {
$old = $this->body;
$this->body = addUrls($this->body);
// TODO fix addUrls, see https://github.com/movim/movim/issues/877
if (strlen($this->body) < strlen($old)) {
$this->body = $old;
}
}
}
}

1
app/widgets/Chat/Chat.php

@ -791,7 +791,6 @@ class Chat extends \Movim\Widget\Base
// Sticker message
if (isset($message->sticker)) {
$p = new Picture;
$sticker = $p->get($message->sticker, false, false, 'png');
$stickerSize = $p->getSize();

Loading…
Cancel
Save