mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user