Add Photo Filters and Photo Albums

This commit is contained in:
Daniel Supernault 2018-06-13 20:57:16 -06:00
parent 596f335dc6
commit 47df007a7e
12 changed files with 648 additions and 17 deletions

View file

@ -40,6 +40,10 @@ class StatusController extends Controller
'filter_name' => 'nullable|string',
]);
if(count($request->file('photo')) > config('pixelfed.max_album_length')) {
return redirect()->back()->with('error', 'Too many files, max limit per post: ' . config('pixelfed.max_album_length'));
}
$cw = $request->filled('cw') && $request->cw == 'on' ? true : false;
$monthHash = hash('sha1', date('Y') . date('m'));
$userHash = hash('sha1', $user->id . (string) $user->created_at);