refactor: single EventPresenter and ManualEvents shared by /api, /me, inbox, webhook; editable flag
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BCrwHHnGCB5XH968Nxokqw
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
namespace App\Channels;
|
||||
|
||||
use App\Enums\Presence;
|
||||
use App\Http\Controllers\Api\EventsController as Presenter;
|
||||
use App\Models\Delivery;
|
||||
use App\Models\Event;
|
||||
use App\Models\User;
|
||||
use App\Presenters\EventPresenter;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Throwable;
|
||||
|
||||
@@ -48,7 +48,7 @@ final class WebhookChannel implements ChannelDriver
|
||||
/** @return array<string,mixed> */
|
||||
public static function payload(Event $event, Delivery $delivery): array
|
||||
{
|
||||
$presented = Presenter::present($event);
|
||||
$presented = EventPresenter::forClient($event);
|
||||
|
||||
return [
|
||||
'event' => [
|
||||
|
||||
Reference in New Issue
Block a user