mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 13:53:37 +00:00
[ios] Fixed issues with Panoramax button not working as intented
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
b4f115a8fa
commit
a985bf8349
@@ -54,6 +54,7 @@ constexpr string_view kUrlTwitter{"https://twitter.com/"};
|
||||
constexpr string_view kUrlVk{"https://vk.com/"};
|
||||
constexpr string_view kUrlLine{"https://line.me/R/ti/p/@"};
|
||||
constexpr string_view kUrlBluesky{"https://bsky.app/profile/"};
|
||||
constexpr string_view kUrlPanoramax{"https://api.panoramax.xyz/?pic="};
|
||||
constexpr string_view kHttp{"http://"};
|
||||
constexpr string_view kHttps{"https://"};
|
||||
|
||||
@@ -673,6 +674,8 @@ string socialContactToURL(MapObject::MetadataID metaID, string_view value)
|
||||
return string{kUrlLine}.append(value);
|
||||
else // 'value' is an URL.
|
||||
return string{kHttps}.append(value);
|
||||
case MapObject::MetadataID::FMD_PANORAMAX:
|
||||
return string{kUrlPanoramax}.append(value);
|
||||
default:
|
||||
return string{value};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user