Coding standards, changed database version
This commit is contained in:
parent
214a0524dd
commit
8211cef49d
3 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
-- ------------------------------------------
|
-- ------------------------------------------
|
||||||
-- Friendica 2021.12-dev (Siberian Iris)
|
-- Friendica 2021.12-dev (Siberian Iris)
|
||||||
-- DB_UPDATE_VERSION 1444
|
-- DB_UPDATE_VERSION 1445
|
||||||
-- ------------------------------------------
|
-- ------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ class Status extends BaseFactory
|
||||||
$retweeted = $this->createFromUriId($item['thr-parent-id'], $uid)->toArray();
|
$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]]);
|
$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['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']);
|
$author = $this->twitterUser->createFromContactId($retweeted_item['author-id'], $item['uid']);
|
||||||
} else {
|
} else {
|
||||||
$retweeted = [];
|
$retweeted = [];
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
|
||||||
if (!defined('DB_UPDATE_VERSION')) {
|
if (!defined('DB_UPDATE_VERSION')) {
|
||||||
define('DB_UPDATE_VERSION', 1444);
|
define('DB_UPDATE_VERSION', 1445);
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Reference in a new issue