forked from shadowfacts/Tusker
Fix showing instance public timeline
This commit is contained in:
parent
6cf6db6a8d
commit
0c06d91f6b
|
@ -143,7 +143,11 @@ class BaseStatusTableViewCell: UITableViewCell {
|
||||||
}
|
}
|
||||||
|
|
||||||
let reblogDisabled: Bool
|
let reblogDisabled: Bool
|
||||||
switch mastodonController.instance.instanceType {
|
switch mastodonController.instance?.instanceType {
|
||||||
|
case nil:
|
||||||
|
// todo: this handle a race condition in instance public timelines
|
||||||
|
// a somewhat better solution would be waiting to load the timeline until after the instance is loaded
|
||||||
|
reblogDisabled = true
|
||||||
case .mastodon:
|
case .mastodon:
|
||||||
reblogDisabled = status.visibility == .private || status.visibility == .direct
|
reblogDisabled = status.visibility == .private || status.visibility == .direct
|
||||||
case .pleroma:
|
case .pleroma:
|
||||||
|
|
Loading…
Reference in New Issue