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

Commit a3b66da2 authored by Hannes Mannerheim's avatar Hannes Mannerheim

repeat-bug, could not repeat oversized notices

this code is copy-paste from statusnet, apparently we need it still
parent e3bb5e1d
......@@ -2101,6 +2101,18 @@ class Notice extends Managed_DataObject
$maxlen = self::maxContent();
if ($maxlen > 0 && mb_strlen($content) > $maxlen) {
// Web interface and current Twitter API clients will
// pull the original notice's text, but some older
// clients and RSS/Atom feeds will see this trimmed text.
// Unfortunately this is likely to lose tags or URLs
// at the end of long notices.
$content = mb_substr($content, 0, $maxlen - 4) . ' ...';
// Scope is same as this one's
return self::saveNew($repeater->id,
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