Swiftagram icon indicating copy to clipboard operation
Swiftagram copied to clipboard

Crash when using a media URL from a private user that my user follows

Open DrewKiino opened this issue 2 years ago • 1 comments

  • [x] I've searched past issues and I couldn't find reference to this.

Swiftagram version e.g. 5.4.0, etc.

Describe the bug Pasting a followed private user's post causes a crash

To reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior sdk does not crash.

Additional context go to Instagram in the app, go to a user that you know is private but is visible to you because you follow them. go to one of their posts and copy the post url. use .media(url) and see crash.

Screen Shot 2022-11-07 at 10 00 28 PM

Device and system e.g. macOS 10.5.16, iPhone Simulator 13.5.

DrewKiino avatar Nov 08 '22 06:11 DrewKiino

Hey @DrewKiino,

Sorry for the late reply. I was originally made aware of this in #294, which I unfortunately closed before actually removing the code from 5.* cause, at the time, I was planning on releasing 6.0.0 soon. That code was basically scrapped, though, and I'm rewriting it as we speak, so I'll keep this open, for reference. Like I mentioned in the other issue, this won't be fixed. It's outside the scopes of the actual Instagram Private API (it's not an endpoint) and it's something I had added for convenience when all permalink were built like that. As it's no longer the case the method will be simply removed.

sbertix avatar Dec 05 '22 22:12 sbertix