Dimillian / IceCubesApp

A SwiftUI Mastodon client
https://apps.apple.com/us/app/ice-cubes-for-mastodon/id6444915884
GNU Affero General Public License v3.0
4.87k stars 460 forks source link

Bug: Respect the instance setting in ShareExtension #2072

Open ileodo opened 1 month ago

ileodo commented 1 month ago

Environment:

Description

This is similar and relevant to https://github.com/Dimillian/IceCubesApp/issues/1943 Basically, my instance support more than 4 images per post, and currently if I launch IceCubesApp and start a post, the media selection window respect the instance's limit.

But if I launch Photo app first and chose images to share, IceCubesApp won't show up in the share sheet. I believe it's due to the hard coded number on https://github.com/Dimillian/IceCubesApp/blob/bb005386dfbfbbecfee306dbdcc71e1ae37908ad/IceCubesShareExtension/Info.plist#L12

I guess there are two options here, 1) I am not sure if we can, but put dynamic number in the plist. 2) remove the restriction in the Info.plist, and check the number of media in the app's code.

Related Issues

similar to https://github.com/Dimillian/IceCubesApp/issues/1943