kopia lustrzana https://github.com/nextcloud/social
bypass $as
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/624/head
rodzic
b3e1c5a50c
commit
a77f5967e9
|
@ -421,6 +421,10 @@ class StreamRequestBuilder extends CoreRequestBuilder {
|
|||
* @throws SocialAppConfigException
|
||||
*/
|
||||
protected function parseStreamSelectSql(array $data, string $as = Stream::TYPE): Stream {
|
||||
if ($as === Stream::TYPE) {
|
||||
$as = $this->get('type', $data, Stream::TYPE);
|
||||
}
|
||||
|
||||
/** @var Stream $item */
|
||||
$item = AP::$activityPub->getItemFromType($as);
|
||||
$item->importFromDatabase($data);
|
||||
|
|
Ładowanie…
Reference in New Issue