From a52b9dea1ad25b8976bf4913424e51977eb6350e Mon Sep 17 00:00:00 2001 From: Kris Date: Mon, 2 Sep 2024 11:00:08 +0200 Subject: [PATCH] :bug: prevent posting on mastodon with friend checkin (#2891) --- app/Http/Controllers/API/v1/TransportController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/API/v1/TransportController.php b/app/Http/Controllers/API/v1/TransportController.php index 3376f4974..83583f31c 100644 --- a/app/Http/Controllers/API/v1/TransportController.php +++ b/app/Http/Controllers/API/v1/TransportController.php @@ -403,6 +403,7 @@ public function create(Request $request): JsonResponse { $dto->setUser($user); $dto->setBody(null); $dto->setStatusVisibility($user->default_status_visibility); + $dto->setPostOnMastodonFlag(false); $checkin = TrainCheckinController::checkin($dto); $user->notify(new YouHaveBeenCheckedIn($checkin->status, auth()->user())); $checkinResponse->alsoOnThisConnection->push($checkin->status);