Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/743/head
Maxence Lange 2019-09-16 17:08:07 +02:00
rodzic bbc89060d0
commit 9084c5ac55
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -94,7 +94,7 @@ class StreamRequestBuilder extends CoreRequestBuilder {
/** @noinspection PhpMethodParametersCountMismatchInspection */
$qb->selectDistinct('s.id')
->addSelect(
's.type', 's.to', 's.to_array', 's.cc', 's.bcc', 's.content',
's.type', 's.subtype', 's.to', 's.to_array', 's.cc', 's.bcc', 's.content',
's.summary', 's.attachments', 's.published', 's.published_time', 's.cache',
's.object_id', 's.attributed_to', 's.in_reply_to', 's.source', 's.local',
's.instances', 's.creation', 's.hidden_on_timeline', 's.details', 's.hashtags'

Wyświetl plik

@ -632,6 +632,7 @@ class ACore extends Item implements JsonSerializable {
public function importFromDatabase(array $data) {
$this->setId($this->validate(self::AS_ID, 'id', $data, ''));
$this->setType($this->validate(self::AS_TYPE, 'type', $data, ''));
$this->setSubType($this->validate(self::AS_TYPE, 'subtype', $data, ''));
$this->setUrl($this->validate(self::AS_URL, 'url', $data, ''));
$this->setSummary($this->validate(self::AS_STRING, 'summary', $data, ''));
$this->setTo($this->validate(self::AS_ID, 'to', $data, ''));