Skip to content

Commit

Permalink
Merge pull request #240 from humhub/f-43-internal-remove-manifest-suf…
Browse files Browse the repository at this point in the history
…ix-on-push

Remove sufix
  • Loading branch information
luke- authored Oct 8, 2024
2 parents 8309023 + ba89c4a commit fb8b88a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/util/openers/opener_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class OpenerController {
}

bool get allOk => !(asyncData == null || asyncData!.hasError || !doesViewExist);

// TODO: Add localization
String? validateUrl(String? value) {
if (value == error404) return 'Your HumHub installation does not exist';
if (value == noConnection) return 'Please check your internet connection.';
Expand Down
4 changes: 3 additions & 1 deletion lib/util/openers/universal_opener_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import 'package:http/http.dart' as http;
import '../api_provider.dart';
import '../connectivity_plugin.dart';


// TODO: Rewrite openers so that the opener_controller will expand universal_opener_controller
class UniversalOpenerController {
late AsyncValue<Manifest>? asyncData;
bool doesViewExist = false;
Expand All @@ -19,7 +21,7 @@ class UniversalOpenerController {
String? manifestUrl;
for (var url in possibleUrls) {
asyncData = await APIProvider.requestBasic(Manifest.get(url));
manifestUrl = url;
manifestUrl = Manifest.getUriWithoutExtension(url);
if (!asyncData!.hasError) break;
}
return manifestUrl;
Expand Down

0 comments on commit fb8b88a

Please sign in to comment.