From 8211cef49d681b33e7db976f11e38b5e39e0b339 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 22 Nov 2021 07:39:40 +0000 Subject: [PATCH] Coding standards, changed database version --- database.sql | 2 +- src/Factory/Api/Twitter/Status.php | 4 ++-- static/dbstructure.config.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/database.sql b/database.sql index f0beb29331..12ad6eb2c3 100644 --- a/database.sql +++ b/database.sql @@ -1,6 +1,6 @@ -- ------------------------------------------ -- Friendica 2021.12-dev (Siberian Iris) --- DB_UPDATE_VERSION 1444 +-- DB_UPDATE_VERSION 1445 -- ------------------------------------------ diff --git a/src/Factory/Api/Twitter/Status.php b/src/Factory/Api/Twitter/Status.php index 96114eb545..b06b74e4d1 100644 --- a/src/Factory/Api/Twitter/Status.php +++ b/src/Factory/Api/Twitter/Status.php @@ -95,14 +95,14 @@ class Status extends BaseFactory $retweeted = $this->createFromUriId($item['thr-parent-id'], $uid)->toArray(); $retweeted_item = Post::selectFirst(['title', 'body', 'author-id'], ['uri-id' => $item['thr-parent-id'],'uid' => [0, $uid]]); $item['title'] = $retweeted_item['title'] ?? $item['title']; - $item['body'] = $retweeted_item['body'] ?? $item['body']; + $item['body'] = $retweeted_item['body'] ?? $item['body']; $author = $this->twitterUser->createFromContactId($retweeted_item['author-id'], $item['uid']); } else { $retweeted = []; } $quoted = []; - + return new \Friendica\Object\Api\Twitter\Status($item, $author, $owner, $retweeted, $quoted, $attachments, $geo, $friendica_activities, $entities, $friendica_comments); } } diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 97cde18bb5..e0645c05e0 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -55,7 +55,7 @@ use Friendica\Database\DBA; if (!defined('DB_UPDATE_VERSION')) { - define('DB_UPDATE_VERSION', 1444); + define('DB_UPDATE_VERSION', 1445); } return [