You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been developing my own maston api compatible server, and I was having issues with login with icecubes.
I eventually found the issue, and fixed it on my server side, and I'm wondering if the same issue is presenting login issues from other implementations.
For me, the issue was case insensitivity of the Visibility flag in the timeline call after login. My server was returning Public but IceCubes wasn't recognizing that.
public enum Visibility: String, Codable, CaseIterable, Hashable, Equatable, Sendable {
case pub = "public"
case unlisted
case priv = "private"
case direct
}
I suspect overriding pub with a string like that breaks the case insensitivity of CaseIterable (I'm not a swift dev)
Anyway, hopefully this can help with some of the other login bugs like #1661 and #2038
The text was updated successfully, but these errors were encountered:
Ok, bear with me on this.
I've been developing my own maston api compatible server, and I was having issues with login with icecubes.
I eventually found the issue, and fixed it on my server side, and I'm wondering if the same issue is presenting login issues from other implementations.
For me, the issue was case insensitivity of the Visibility flag in the timeline call after login. My server was returning
Public
but IceCubes wasn't recognizing that.In https://github.com/Dimillian/IceCubesApp/blob/main/Packages/Models/Sources/Models/Status.swift this code
I suspect overriding
pub
with a string like that breaks the case insensitivity ofCaseIterable
(I'm not a swift dev)Anyway, hopefully this can help with some of the other login bugs like #1661 and #2038
The text was updated successfully, but these errors were encountered: