Replace omaps.app links with comaps.app

Co-authored-by: zyphlar <zyphlar@noreply.codeberg.org>
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-05-26 17:10:34 +07:00
parent 536c11079d
commit ca1776ee9f
12 changed files with 93 additions and 93 deletions

View File

@@ -18,16 +18,16 @@
[activityType isEqualToString:@"com.facebook.Facebook.ShareExtension"] ||
[activityType.lowercaseString rangeOfString:@"facebook"].length)
{
NSString * url = [NSString stringWithFormat:@"https://omaps.app/fb-editor-v1?lang=%@",
NSString * url = [NSString stringWithFormat:@"https://comaps.app/fb-editor-v1?lang=%@",
@(languages::GetCurrentNorm().c_str())];
return [NSURL URLWithString:url];
}
NSString * omapsURL = @"https://omaps.app/get";
NSString * comapsURL = @"https://comaps.app/get";
if ([activityType isEqualToString:UIActivityTypePostToTwitter] || [activityType isEqualToString:UIActivityTypeMail])
return [NSString stringWithFormat:@"%@ %@", L(@"whatsnew_editor_message_1"), omapsURL];
return [NSString stringWithFormat:@"%@ %@", L(@"whatsnew_editor_message_1"), comapsURL];
return [NSString stringWithFormat:@"%@.\n%@\n%@", L(@"editor_sharing_title"), L(@"whatsnew_editor_message_1"), omapsURL];
return [NSString stringWithFormat:@"%@.\n%@\n%@", L(@"editor_sharing_title"), L(@"whatsnew_editor_message_1"), comapsURL];
}
- (NSString *)activityViewController:(UIActivityViewController *)activityViewController

View File

@@ -9,8 +9,8 @@
NSString * httpGe0Url(NSString * shortUrl)
{
// Replace 'om://' with 'https://omaps.app/'
return [shortUrl stringByReplacingCharactersInRange:NSMakeRange(0, 5) withString:@"https://omaps.app/"];
// Replace 'cm://' with 'https://comaps.app/'
return [shortUrl stringByReplacingCharactersInRange:NSMakeRange(0, 5) withString:@"https://comaps.app/"];
}
@interface MWMShareActivityItem ()