feat: engagment notifications
This commit is contained in:
@@ -7,6 +7,7 @@ use App\Http\Requests\StravaCallbackRequest;
|
||||
use App\Http\Requests\StravaSyncRequest;
|
||||
use App\Models\StravaConnection;
|
||||
use App\Models\WorkoutSessions;
|
||||
use App\Services\MobileDeepLink;
|
||||
use App\Services\StravaClient;
|
||||
use Illuminate\Http\Client\ConnectionException;
|
||||
use Illuminate\Http\Client\RequestException;
|
||||
@@ -40,10 +41,7 @@ class StravaController extends Controller
|
||||
->filter(fn ($value): bool => $value !== null && $value !== '')
|
||||
->all();
|
||||
|
||||
$query = http_build_query($params, '', '&', PHP_QUERY_RFC3986);
|
||||
$url = 'bowly://strava/callback'.($query ? "?{$query}" : '');
|
||||
|
||||
return redirect()->away($url);
|
||||
return redirect()->away(MobileDeepLink::to('strava/callback', $params));
|
||||
}
|
||||
|
||||
public function callback(StravaCallbackRequest $request, StravaClient $strava): JsonResponse
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace App\Notifications;
|
||||
|
||||
use App\Models\PostReviews;
|
||||
use App\Services\MobileDeepLink;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Notifications\Notification;
|
||||
use Illuminate\Support\Str;
|
||||
@@ -42,7 +43,7 @@ class MealPostCommentedNotification extends Notification
|
||||
'sound' => 'default',
|
||||
'channelId' => 'default',
|
||||
'data' => [
|
||||
'url' => "bowly://meals/{$mealPostId}",
|
||||
'url' => MobileDeepLink::to("meals/{$mealPostId}"),
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user