mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 07:45:22 +00:00
Update timeline settings
This commit is contained in:
parent
0eca48f1a4
commit
f54cf0b2d7
2 changed files with 10 additions and 2 deletions
|
@ -8,17 +8,23 @@
|
||||||
<hr>
|
<hr>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
@csrf
|
@csrf
|
||||||
<div class="form-check pb-3">
|
<div class="form-check pb-3 d-none">
|
||||||
<input class="form-check-input" type="checkbox" name="top" {{$top ? 'checked':''}}>
|
<input class="form-check-input" type="checkbox" name="top" {{$top ? 'checked':''}}>
|
||||||
<label class="form-check-label font-weight-bold" for="">Show text-only posts</label>
|
<label class="form-check-label font-weight-bold" for="">Show text-only posts</label>
|
||||||
<p class="text-muted small help-text">Show text-only posts from accounts you follow. (Home timeline only)</p>
|
<p class="text-muted small help-text">Show text-only posts from accounts you follow. (Home timeline only)</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-check pb-3">
|
<div class="form-check pb-3 d-none">
|
||||||
<input class="form-check-input" type="checkbox" name="replies" {{$replies ? 'checked':''}}>
|
<input class="form-check-input" type="checkbox" name="replies" {{$replies ? 'checked':''}}>
|
||||||
<label class="form-check-label font-weight-bold" for="">Show replies</label>
|
<label class="form-check-label font-weight-bold" for="">Show replies</label>
|
||||||
<p class="text-muted small help-text">Show replies from accounts you follow. (Home timeline only)</p>
|
<p class="text-muted small help-text">Show replies from accounts you follow. (Home timeline only)</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-check pb-3">
|
||||||
|
<input class="form-check-input" type="checkbox" name="enable_reblogs" {{$userSettings['enable_reblogs'] ? 'checked':''}}>
|
||||||
|
<label class="form-check-label font-weight-bold" for="">Show reblogs</label>
|
||||||
|
<p class="text-muted small help-text">See reblogs from accounts you follow in your home feed. (Home timeline only)</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group row mt-5 pt-5">
|
<div class="form-group row mt-5 pt-5">
|
||||||
<div class="col-12 text-right">
|
<div class="col-12 text-right">
|
||||||
<hr>
|
<hr>
|
||||||
|
|
|
@ -304,6 +304,8 @@ Route::group(['prefix' => 'api'], function() use($middleware) {
|
||||||
Route::get('posts/{id}/{slug}', 'Api\ApiV1Dot1Controller@placesById')->middleware($middleware);
|
Route::get('posts/{id}/{slug}', 'Api\ApiV1Dot1Controller@placesById')->middleware($middleware);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Route::get('web/settings', 'Api\ApiV1Dot1Controller@getWebSettings')->middleware($middleware);
|
||||||
|
Route::post('web/settings', 'Api\ApiV1Dot1Controller@setWebSettings')->middleware($middleware);
|
||||||
Route::get('app/settings', 'UserAppSettingsController@get')->middleware($middleware);
|
Route::get('app/settings', 'UserAppSettingsController@get')->middleware($middleware);
|
||||||
Route::post('app/settings', 'UserAppSettingsController@store')->middleware($middleware);
|
Route::post('app/settings', 'UserAppSettingsController@store')->middleware($middleware);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue