Merge pull request #2203 from pixelfed/staging

Staging
This commit is contained in:
daniel 2020-05-23 23:54:37 -06:00 committed by GitHub
commit 390592f755
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 10 deletions

View file

@ -558,6 +558,7 @@ class PublicApiController extends Controller
'likes_count', 'likes_count',
'reblogs_count', 'reblogs_count',
'scope', 'scope',
'visibility',
'local', 'local',
'cw_summary', 'cw_summary',
'created_at', 'created_at',
@ -568,12 +569,13 @@ class PublicApiController extends Controller
->whereIn('visibility', $visibility) ->whereIn('visibility', $visibility)
->latest() ->latest()
->limit($limit) ->limit($limit)
->orderByDesc('created_at')
->get(); ->get();
$resource = new Fractal\Resource\Collection($timeline, new StatusTransformer()); $resource = new Fractal\Resource\Collection($timeline, new StatusTransformer());
$res = $this->fractal->createData($resource)->toArray(); $res = $this->fractal->createData($resource)->toArray();
return response()->json($res); return response()->json($res, 200, [], JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);
} }
} }

View file

@ -238,10 +238,13 @@ class RestrictedNames
'robot', 'robot',
'robots', 'robots',
's', 's',
'sc',
'search', 'search',
'sell', 'sell',
'send', 'send',
'settings', 'settings',
'short',
'shortcode',
'status', 'status',
'statuses', 'statuses',
'site', 'site',

View file

@ -21,7 +21,11 @@ return [
'delivery' => [ 'delivery' => [
'timeout' => env('ACTIVITYPUB_DELIVERY_TIMEOUT', 2.0), 'timeout' => env('ACTIVITYPUB_DELIVERY_TIMEOUT', 2.0),
'concurrency' => env('ACTIVITYPUB_DELIVERY_CONCURRENCY', 10) 'concurrency' => env('ACTIVITYPUB_DELIVERY_CONCURRENCY', 10),
'logger' => [
'enabled' => env('AP_LOGGER_ENABLED', false),
'driver' => 'log'
]
] ]
], ],

View file

@ -10,6 +10,9 @@ return [
], ],
'discover' => [ 'discover' => [
'loops' => [
'enabled' => env('EXP_LOOPS', false),
],
'tags' => [ 'tags' => [
'is_public' => env('INSTANCE_PUBLIC_HASHTAGS', false) 'is_public' => env('INSTANCE_PUBLIC_HASHTAGS', false)
], ],
@ -49,5 +52,12 @@ return [
'restricted' => [ 'restricted' => [
'enabled' => env('RESTRICTED_INSTANCE', false), 'enabled' => env('RESTRICTED_INSTANCE', false),
'level' => 1 'level' => 1
],
'oauth' => [
'pat' => [
'enabled' => env('OAUTH_PAT_ENABLED', false),
'id' => env('OAUTH_PAT_ID'),
]
] ]
]; ];

View file

@ -47,13 +47,6 @@
</div> </div>
</noscript> </noscript>
<div class="modal pr-0" tabindex="-1" role="dialog" id="composeModal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<compose-modal></compose-modal>
</div>
</div>
</div>
</main> </main>
@include('layouts.partial.footer') @include('layouts.partial.footer')
<script type="text/javascript" src="{{ mix('js/manifest.js') }}"></script> <script type="text/javascript" src="{{ mix('js/manifest.js') }}"></script>