mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:10:11 +00:00
New table "post-content"
This commit is contained in:
parent
8eb3bddc2a
commit
c3398511b4
15 changed files with 447 additions and 431 deletions
|
@ -20,6 +20,7 @@
|
|||
*/
|
||||
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Content\Text\Plaintext;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
|
@ -28,7 +29,6 @@ use Friendica\Database\DBA;
|
|||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\ItemContent;
|
||||
use Friendica\Model\Notification;
|
||||
use Friendica\Model\Post;
|
||||
use Friendica\Model\User;
|
||||
|
@ -176,7 +176,7 @@ function notification($params)
|
|||
|
||||
$item_post_type = Item::postType($item);
|
||||
|
||||
$content = ItemContent::getPlaintextPost($item, 70);
|
||||
$content = Plaintext::getPost($item, 70);
|
||||
if (!empty($content['text'])) {
|
||||
$title = '"' . trim(str_replace("\n", " ", $content['text'])) . '"';
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue