Stream signed uploads through addMediaFromPath, return per-type max_bytes, harden Pinterest/Discord listing errors and pagination, and keep frontend duration fallbacks when Inertia once-props have not synced. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
415 B
PHP
19 lines
415 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Actions\SocialAccount;
|
|
|
|
use App\Models\SocialAccount;
|
|
use App\Services\Social\Discord\DiscordClient;
|
|
|
|
class ListDiscordChannels
|
|
{
|
|
/**
|
|
* @return list<array{id: string, name: string}>
|
|
*/
|
|
public static function execute(SocialAccount $account): array
|
|
{
|
|
return app(DiscordClient::class)->channels((string) $account->platform_user_id);
|
|
}
|
|
}
|