diff --git a/app/Http/Controllers/StatusController.php b/app/Http/Controllers/StatusController.php index 649ab2da1..fe2ac6468 100644 --- a/app/Http/Controllers/StatusController.php +++ b/app/Http/Controllers/StatusController.php @@ -325,6 +325,7 @@ class StatusController extends Controller if ($changed === true) { $media->save(); + Cache::forget('status:transformer:media:attachments:'.$media->status_id); } return response()->json([], 200); diff --git a/resources/views/status/edit.blade.php b/resources/views/status/edit.blade.php index d69843552..52c325be9 100644 --- a/resources/views/status/edit.blade.php +++ b/resources/views/status/edit.blade.php @@ -3,89 +3,102 @@ @section('content')
-
+
-
-
- Edit Status - Back to post -
-
- @csrf -
- -
- is_nsfw==true?'checked=""':''}} disabled=""> - -
-
-
-
+
+
+ Edit Status + Back to post +
+
+ @csrf +
+ +
+ is_nsfw==true?'checked=""':''}} disabled=""> + +
+
+
+
+
+ @foreach($status->media()->orderBy('order')->get() as $media) +
+
+ Media #{{$media->order + 1}} + + + {{$media->mime}} + + +
+
+
+
+ @csrf + +
+ +
+
+
+ + +
+
+ + +
+
+
+

Last Updated: {{$media->updated_at->diffForHumans()}}

+ +
+
+
+
+
+
+ @endforeach +
- @foreach($status->media()->orderBy('order')->get() as $media) -
-
- Media #{{$media->order}} -
-
-
- @csrf - -
- -
-
-
- - -
-
- - -
-
-
-

Last Updated: {{$media->updated_at->diffForHumans()}}

- -
-
-
-
-
- @endforeach - -
+
@endsection @push('scripts') + @endpush \ No newline at end of file