chore: pre-commit ci hook, dart format

This commit is contained in:
edde746
2026-04-18 12:40:35 +02:00
parent 2bd9e6655f
commit 3da51f9d64
128 changed files with 2056 additions and 2048 deletions
+2 -9
View File
@@ -300,21 +300,14 @@ class DiscordRPCService {
if (imageUrl.isEmpty) return null;
// Fetch image data
final imageBytes = await httpClient.getBytes(
imageUrl,
timeout: const Duration(seconds: 10),
);
final imageBytes = await httpClient.getBytes(imageUrl, timeout: const Duration(seconds: 10));
if (imageBytes.isEmpty) return null;
// Upload to Litterbox
final uploadRequest = http.MultipartRequest('POST', Uri.parse(_litterboxUrl))
..fields['reqtype'] = 'fileupload'
..fields['time'] = '1h'
..files.add(http.MultipartFile.fromBytes(
'fileToUpload',
imageBytes,
filename: 'thumbnail.jpg',
));
..files.add(http.MultipartFile.fromBytes('fileToUpload', imageBytes, filename: 'thumbnail.jpg'));
final uploadStreamed = await httpClient.inner
.send(uploadRequest)