Skip to content

Commit

Permalink
fix: Do not add server login info at fetch time
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa committed Sep 28, 2024
1 parent 22549e1 commit 3d343e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/api/events.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ extension EventsExtension on API {
? int.parse(eventObject['content']['media_id'])
: null,
mediaURL: eventObject.containsKey('content')
? Uri.parse(
(eventObject['content']['content'] as String).replaceAll(
'https://',
'https://${Uri.encodeComponent(server.login)}:${Uri.encodeComponent(server.password)}@',
),
)
? Uri.parse(eventObject['content']['content'] as String
// .replaceAll(
// 'https://',
// 'https://${Uri.encodeComponent(server.login)}:${Uri.encodeComponent(server.password)}@',
// ),
)
: null,
);
return event;
Expand Down
1 change: 0 additions & 1 deletion lib/providers/downloads_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import 'package:bluecherry_client/utils/storage.dart';
import 'package:dio/dio.dart';
import 'package:file_picker/file_picker.dart';
import 'package:flutter/foundation.dart';
import 'package:http/http.dart' as http;
import 'package:path/path.dart' as path;
import 'package:path_provider/path_provider.dart';

Expand Down

0 comments on commit 3d343e6

Please sign in to comment.