aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-29 17:30:46 -0700
committerfriendica <info@friendica.com>2013-07-29 17:30:46 -0700
commit7b3c29ebe69726f7d42c9327bebb2ea7251bccb4 (patch)
treeeea014afe0989f657768eaf56cacf0f33a6e88df /include/items.php
parent092ef64ac78d7535788ba03b0d940fa311e0934d (diff)
downloadvolse-hubzilla-7b3c29ebe69726f7d42c9327bebb2ea7251bccb4.tar.gz
volse-hubzilla-7b3c29ebe69726f7d42c9327bebb2ea7251bccb4.tar.bz2
volse-hubzilla-7b3c29ebe69726f7d42c9327bebb2ea7251bccb4.zip
fix bug #84, make imported messages from your clones show up on your wall
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index bb4bd42e3..b22c02955 100755
--- a/include/items.php
+++ b/include/items.php
@@ -506,6 +506,11 @@ function get_item_elements($x) {
$arr['edited'] = datetime_convert();
$arr['title'] = (($x['title']) ? htmlentities($x['title'], ENT_COMPAT,'UTF-8',false) : '');
+
+ if(mb_strlen($arr['title']) > 255)
+ $arr['title'] = mb_substr($arr['title'],0,255);
+
+
$arr['app'] = (($x['app']) ? htmlentities($x['app'], ENT_COMPAT,'UTF-8',false) : '');
$arr['mid'] = (($x['message_id']) ? htmlentities($x['message_id'], ENT_COMPAT,'UTF-8',false) : '');
$arr['parent_mid'] = (($x['message_top']) ? htmlentities($x['message_top'], ENT_COMPAT,'UTF-8',false) : '');