Content is now filled
This commit is contained in:
parent
cd3d4ae4e6
commit
305fe62659
|
@ -56,7 +56,6 @@ class PublicTimeline extends BaseApi
|
|||
|
||||
$condition = ['gravity' => [GRAVITY_PARENT, GRAVITY_COMMENT], 'private' => Item::PUBLIC];
|
||||
if ($local) {
|
||||
$condition['wall'] = true;
|
||||
$condition['origin'] = true;
|
||||
} else {
|
||||
$condition['uid'] = 0;
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
namespace Friendica\Object\Api\Mastodon;
|
||||
|
||||
use Friendica\BaseEntity;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
||||
/**
|
||||
|
@ -105,7 +106,7 @@ class Status extends BaseEntity
|
|||
}
|
||||
|
||||
$this->sensitive = false;
|
||||
$this->spoiler_text = "";
|
||||
$this->spoiler_text = $item['title'];
|
||||
|
||||
$visibility = ['public', 'private', 'unlisted'];
|
||||
$this->visibility = $visibility[$item['private']];
|
||||
|
@ -121,7 +122,7 @@ class Status extends BaseEntity
|
|||
$this->muted = false;
|
||||
$this->bookmarked = false;
|
||||
$this->pinned = false;
|
||||
$this->content;
|
||||
$this->content = BBCode::convert($item['body'], false);
|
||||
$this->reblog = null;
|
||||
$this->application = null;
|
||||
$this->account = $account->toArray();
|
||||
|
|
Loading…
Reference in New Issue
Block a user