Skip to content

Commit

Permalink
🐛 prevent posting on mastodon with friend checkin (#2891)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKrisKrisu authored Sep 2, 2024
1 parent 7691067 commit a52b9de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/API/v1/TransportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a52b9de

Please sign in to comment.