Issue 8254 More length shortenings
This commit is contained in:
parent
85b0b676c1
commit
6f22e3909b
|
@ -453,7 +453,7 @@ function notification($params)
|
||||||
if ($show_in_notification_page) {
|
if ($show_in_notification_page) {
|
||||||
$notification = DI::notify()->insert([
|
$notification = DI::notify()->insert([
|
||||||
'name' => $params['source_name'] ?? '',
|
'name' => $params['source_name'] ?? '',
|
||||||
'name_cache' => strip_tags(BBCode::convert($params['source_name'] ?? '')),
|
'name_cache' => substr(strip_tags(BBCode::convert($params['source_name'] ?? '')), 0, 255),
|
||||||
'url' => $params['source_link'] ?? '',
|
'url' => $params['source_link'] ?? '',
|
||||||
'photo' => $params['source_photo'] ?? '',
|
'photo' => $params['source_photo'] ?? '',
|
||||||
'link' => $itemlink ?? '',
|
'link' => $itemlink ?? '',
|
||||||
|
|
|
@ -1558,7 +1558,7 @@ class Item
|
||||||
$item['object'] = trim($item['object'] ?? '');
|
$item['object'] = trim($item['object'] ?? '');
|
||||||
$item['target-type'] = trim($item['target-type'] ?? '');
|
$item['target-type'] = trim($item['target-type'] ?? '');
|
||||||
$item['target'] = trim($item['target'] ?? '');
|
$item['target'] = trim($item['target'] ?? '');
|
||||||
$item['plink'] = trim($item['plink'] ?? '');
|
$item['plink'] = substr(trim($item['plink'] ?? ''), 0, 255);
|
||||||
$item['allow_cid'] = trim($item['allow_cid'] ?? '');
|
$item['allow_cid'] = trim($item['allow_cid'] ?? '');
|
||||||
$item['allow_gid'] = trim($item['allow_gid'] ?? '');
|
$item['allow_gid'] = trim($item['allow_gid'] ?? '');
|
||||||
$item['deny_cid'] = trim($item['deny_cid'] ?? '');
|
$item['deny_cid'] = trim($item['deny_cid'] ?? '');
|
||||||
|
|
|
@ -87,7 +87,7 @@ class ParseUrl
|
||||||
DBA::insert(
|
DBA::insert(
|
||||||
'parsed_url',
|
'parsed_url',
|
||||||
[
|
[
|
||||||
'url' => Strings::normaliseLink($url), 'guessing' => !$no_guessing,
|
'url' => substr(Strings::normaliseLink($url), 0, 255), 'guessing' => !$no_guessing,
|
||||||
'oembed' => $do_oembed, 'content' => serialize($data),
|
'oembed' => $do_oembed, 'content' => serialize($data),
|
||||||
'created' => DateTimeFormat::utcNow()
|
'created' => DateTimeFormat::utcNow()
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user