mirror of
https://github.com/friendica/friendica
synced 2025-04-28 20:24:24 +02:00
API: (hopefully) improves speed of the public timeline
This commit is contained in:
parent
cd8ce7eada
commit
24cc82f396
6 changed files with 124 additions and 11 deletions
|
@ -52,7 +52,7 @@ class Preferences extends BaseApi
|
|||
$sensitive = false;
|
||||
$language = $user['language'];
|
||||
$media = DI::pConfig()->get($uid, 'nsfw', 'disable') ? 'show_all' : 'default';
|
||||
$spoilers = DI::pConfig()->get($uid, 'system', 'disable_cw');
|
||||
$spoilers = (bool)DI::pConfig()->get($uid, 'system', 'disable_cw');
|
||||
|
||||
$preferences = new \Friendica\Object\Api\Mastodon\Preferences($visibility, $sensitive, $language, $media, $spoilers);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue