From 95cea65d395413234ea318af5c976133f839b525 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 27 Dec 2020 18:19:07 -0700 Subject: [PATCH 1/3] Add migration --- ...40951_add_skip_optimize_to_media_table.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2020_12_27_040951_add_skip_optimize_to_media_table.php diff --git a/database/migrations/2020_12_27_040951_add_skip_optimize_to_media_table.php b/database/migrations/2020_12_27_040951_add_skip_optimize_to_media_table.php new file mode 100644 index 000000000..4a4553147 --- /dev/null +++ b/database/migrations/2020_12_27_040951_add_skip_optimize_to_media_table.php @@ -0,0 +1,34 @@ +boolean('skip_optimize')->nullable()->index(); + $table->timestamp('replicated_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('media', function (Blueprint $table) { + $table->dropColumn('skip_optimize'); + $table->dropColumn('replicated_at'); + }); + } +} From 7dc3739c1d6c0cc0b6f2a9355fb7f082a0173ede Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 3 Jan 2021 22:06:05 -0700 Subject: [PATCH 2/3] Update StatusController, fix scope bug --- app/Http/Controllers/StatusController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/StatusController.php b/app/Http/Controllers/StatusController.php index c23e9bf4d..06424bb9b 100644 --- a/app/Http/Controllers/StatusController.php +++ b/app/Http/Controllers/StatusController.php @@ -33,7 +33,7 @@ class StatusController extends Controller $status = Status::whereProfileId($user->id) ->whereNull('reblog_of_id') - ->whereIn('scope', ['public','unlisted']) + ->whereIn('scope', ['public','unlisted', 'private']) ->findOrFail($id); if($status->uri || $status->url) { From 9cd89b6b159e6b7d402d9f35cb92dfd2b63b1539 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 3 Jan 2021 22:06:53 -0700 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86fc9ea34..e1b779164 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -151,6 +151,7 @@ - Updated StatusService, cast response to array. ([0fbde91e](https://github.com/pixelfed/pixelfed/commit/0fbde91e)) - Updated status model, use scope over deprecated visibility attribute. ([f70826e1](https://github.com/pixelfed/pixelfed/commit/f70826e1)) - Updated Follower model, increase hourly limit from 30 to 150. ([b9b84e6f](https://github.com/pixelfed/pixelfed/commit/b9b84e6f)) +- Updated StatusController, fix scope bug. ([7dc3739c](https://github.com/pixelfed/pixelfed/commit/7dc3739c)) ## [v0.10.9 (2020-04-17)](https://github.com/pixelfed/pixelfed/compare/v0.10.8...v0.10.9) ### Added