mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-02 03:03:17 +00:00
commit
2803aaf6c1
2 changed files with 4 additions and 1 deletions
|
@ -126,6 +126,7 @@
|
||||||
- Updated dockerfile, fix composer issue. ([ef45c4b21](https://github.com/pixelfed/pixelfed/commit/ef45c4b21))
|
- Updated dockerfile, fix composer issue. ([ef45c4b21](https://github.com/pixelfed/pixelfed/commit/ef45c4b21))
|
||||||
- Updated reply/comment view, improve layout and include child reply. ([2eca670e](https://github.com/pixelfed/pixelfed/commit/2eca670e))
|
- Updated reply/comment view, improve layout and include child reply. ([2eca670e](https://github.com/pixelfed/pixelfed/commit/2eca670e))
|
||||||
- Updated Collections, add custom limit. ([048642be](https://github.com/pixelfed/pixelfed/commit/048642be))
|
- Updated Collections, add custom limit. ([048642be](https://github.com/pixelfed/pixelfed/commit/048642be))
|
||||||
|
- Updated AccountInterstitialController, add autospam type. ([c67f0c57](https://github.com/pixelfed/pixelfed/commit/c67f0c57))
|
||||||
|
|
||||||
## [v0.10.9 (2020-04-17)](https://github.com/pixelfed/pixelfed/compare/v0.10.8...v0.10.9)
|
## [v0.10.9 (2020-04-17)](https://github.com/pixelfed/pixelfed/compare/v0.10.8...v0.10.9)
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -20,12 +20,14 @@ class AccountInterstitialController extends Controller
|
||||||
->interstitials()
|
->interstitials()
|
||||||
->whereNull('read_at')
|
->whereNull('read_at')
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
if(!$interstitial) {
|
if(!$interstitial) {
|
||||||
$user = $request->user();
|
$user = $request->user();
|
||||||
$user->has_interstitial = false;
|
$user->has_interstitial = false;
|
||||||
$user->save();
|
$user->save();
|
||||||
return redirect('/');
|
return redirect('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
$meta = json_decode($interstitial->meta);
|
$meta = json_decode($interstitial->meta);
|
||||||
$view = $interstitial->view;
|
$view = $interstitial->view;
|
||||||
return view($view, compact('interstitial', 'meta'));
|
return view($view, compact('interstitial', 'meta'));
|
||||||
|
@ -35,7 +37,7 @@ class AccountInterstitialController extends Controller
|
||||||
{
|
{
|
||||||
$this->validate($request, [
|
$this->validate($request, [
|
||||||
'id' => 'required',
|
'id' => 'required',
|
||||||
'type' => 'required|in:post.cw,post.removed,post.unlist',
|
'type' => 'required|in:post.cw,post.removed,post.unlist,post.autospam',
|
||||||
'action' => 'required|in:appeal,confirm',
|
'action' => 'required|in:appeal,confirm',
|
||||||
'appeal_message' => 'nullable|max:500'
|
'appeal_message' => 'nullable|max:500'
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue