Browse Source

Coding standards, changed database version

pull/11018/head
Michael 2 months ago
parent
commit
8211cef49d
  1. 2
      database.sql
  2. 4
      src/Factory/Api/Twitter/Status.php
  3. 2
      static/dbstructure.config.php

2
database.sql

@ -1,6 +1,6 @@
-- ------------------------------------------
-- Friendica 2021.12-dev (Siberian Iris)
-- DB_UPDATE_VERSION 1444
-- DB_UPDATE_VERSION 1445
-- ------------------------------------------

4
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);
}
}

2
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 [

Loading…
Cancel
Save