X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FItemContent.php;h=c51f471d8585b4d84fb7fdbb582adebd8fef4785;hb=947cc98cc43a82cb3e67b51a897009a7bd2629a0;hp=250400ef428d92d08b2aec9e32e078d2d9ebe192;hpb=8c2efa6df43c3895eb571869621fb7687bdfc404;p=friendica.git diff --git a/src/Model/ItemContent.php b/src/Model/ItemContent.php index 250400ef42..c51f471d85 100644 --- a/src/Model/ItemContent.php +++ b/src/Model/ItemContent.php @@ -9,6 +9,7 @@ namespace Friendica\Model; use Friendica\BaseObject; use Friendica\Content\Text; use Friendica\Core\PConfig; +use Friendica\Core\Protocol; require_once 'boot.php'; require_once 'include/items.php'; @@ -68,11 +69,13 @@ class ItemContent extends BaseObject } else {// Try to guess the correct target network switch ($htmlmode) { case 8: - $abstract = Text\BBCode::getAbstract($item['body'], NETWORK_TWITTER); + $abstract = Text\BBCode::getAbstract($item['body'], Protocol::TWITTER); break; + case 7: - $abstract = Text\BBCode::getAbstract($item['body'], NETWORK_STATUSNET); + $abstract = Text\BBCode::getAbstract($item['body'], Protocol::STATUSNET); break; + default: // We don't know the exact target. // We fetch an abstract since there is a posting limit. if ($limit > 0) {