diff --git a/CHANGELOG.md b/CHANGELOG.md index cf669d74d..5522fd453 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,8 @@ - Updated api routes, fixes ([#2114](https://github.com/pixelfed/pixelfed/issues/2114)) ([50bbeddd](https://github.com/pixelfed/pixelfed/commit/50bbeddd)) - Updated SiteController, add legacy profile/webfinger redirect ([cfaa248c](https://github.com/pixelfed/pixelfed/commit/cfaa248c)) - Updated checkpoint view, fix recovery code bug ([3385583f](https://github.com/pixelfed/pixelfed/commit/3385583f)) +- Updated Inbox, move expensive HTTP Signature validation to job queue ([f2ae45e5a](https://github.com/pixelfed/pixelfed/commit/f2ae45e5a)) +- Updated MomentUI, fix bugs and improve UI ([90b89cb8](https://github.com/pixelfed/pixelfed/commit/90b89cb8)) ## [v0.10.9 (2020-04-17)](https://github.com/pixelfed/pixelfed/compare/v0.10.8...v0.10.9) diff --git a/app/Http/Controllers/CommentController.php b/app/Http/Controllers/CommentController.php index acf41df44..834dbc24f 100644 --- a/app/Http/Controllers/CommentController.php +++ b/app/Http/Controllers/CommentController.php @@ -34,9 +34,11 @@ class CommentController extends Controller $this->validate($request, [ 'item' => 'required|integer|min:1', 'comment' => 'required|string|max:'.(int) config('pixelfed.max_caption_length'), + 'sensitive' => 'nullable|boolean' ]); $comment = $request->input('comment'); - $statusId = $request->item; + $statusId = $request->input('item'); + $nsfw = $request->input('sensitive', false); $user = Auth::user(); $profile = $user->profile; @@ -56,11 +58,12 @@ class CommentController extends Controller return; } - $reply = DB::transaction(function() use($comment, $status, $profile) { + $reply = DB::transaction(function() use($comment, $status, $profile, $nsfw) { $scope = $profile->is_private == true ? 'private' : 'public'; $autolink = Autolink::create()->autolink($comment); $reply = new Status(); $reply->profile_id = $profile->id; + $reply->is_nsfw = $nsfw; $reply->caption = e($comment); $reply->rendered = $autolink; $reply->in_reply_to_id = $status->id; diff --git a/public/js/profile.js b/public/js/profile.js index 7edb4ae6d..cb25c1f98 100644 Binary files a/public/js/profile.js and b/public/js/profile.js differ diff --git a/public/js/rempos.js b/public/js/rempos.js index 81be27cf0..f58ad1e98 100644 Binary files a/public/js/rempos.js and b/public/js/rempos.js differ diff --git a/public/js/status.js b/public/js/status.js index d79c46f3d..7e1a772d0 100644 Binary files a/public/js/status.js and b/public/js/status.js differ diff --git a/public/js/timeline.js b/public/js/timeline.js index 1cb667eaa..4f01c7cb2 100644 Binary files a/public/js/timeline.js and b/public/js/timeline.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json index c32b868df..de81b6eb5 100644 Binary files a/public/mix-manifest.json and b/public/mix-manifest.json differ diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index 1432f83c4..b3e834ede 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -3,10 +3,10 @@
+
++ by {{statusUsername}} + + • + Follow + +
+by {{statusUsername}} @@ -318,7 +326,7 @@ Follow -->