Swiftagram
Swiftagram copied to clipboard
Crash when using a media URL from a private user that my user follows
- [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:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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.

Device and system e.g. macOS 10.5.16, iPhone Simulator 13.5.
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.