diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-09-08 16:04:35 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-09-08 16:04:35 +0200 |
| commit | cec89d9e844dc39b84778e1b88e74e23f9ca2e6a (patch) | |
| tree | 16e36fdc1263dff71510256a43dc0d972bf35c88 /Types/SocialSite.m | |
| parent | a5e25cc05e5e33e114331cc826211c89adbcfa6a (diff) | |
WIP generic Delicious API compatible
Diffstat (limited to 'Types/SocialSite.m')
| -rw-r--r-- | Types/SocialSite.m | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/Types/SocialSite.m b/Types/SocialSite.m index d002235..b73533f 100644 --- a/Types/SocialSite.m +++ b/Types/SocialSite.m @@ -17,6 +17,8 @@ return @"Pinboard"; case SocialSiteLinkding: return @"Linkding"; + case SocialSiteSelfHostedDeliciousCompatible: + return @"Self-Hosted (Delicious Compatible)"; default: return @"Unknown"; } @@ -30,6 +32,7 @@ return @"ma.gnolia.com"; case SocialSitePinboard: return @"pinboard.in"; + case SocialSiteSelfHostedDeliciousCompatible: case SocialSiteLinkding: return @""; // Will be provided by user as host default: @@ -37,19 +40,14 @@ } } -+ (NSString *)reversedSiteURLForSite:(SocialSite)site { ++ (BOOL)hasVariableHost:(SocialSite)site { switch (site) { - case SocialSiteDelicious: - return @"us.icio.del"; - case SocialSiteMagnolia: - return @"com.gnolia.ma"; - case SocialSitePinboard: - return @"in.pinboard"; - case SocialSiteLinkding: - return @"linkding"; // Generic identifier - default: - return nil; + case SocialSiteSelfHostedDeliciousCompatible: + case SocialSiteLinkding: + return YES; + default: + return NO; } } -@end
\ No newline at end of file +@end |