forked from shadowfacts/Tusker
Disallow more interactions on non-browsable public instance timeline
This commit is contained in:
parent
5c86feccb9
commit
e869fdc38f
|
@ -77,11 +77,25 @@ class InstanceTimelineViewController: TimelineViewController {
|
|||
cell.updateUI(statusID: id, state: state, filterResult: filterResult, precomputedContent: precomputedContent)
|
||||
}
|
||||
|
||||
override func collectionView(_ collectionView: UICollectionView, shouldSelectItemAt indexPath: IndexPath) -> Bool {
|
||||
guard browsingEnabled else {
|
||||
return false
|
||||
}
|
||||
return super.collectionView(collectionView, shouldSelectItemAt: indexPath)
|
||||
}
|
||||
|
||||
override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
|
||||
guard browsingEnabled else { return }
|
||||
super.collectionView(collectionView, didSelectItemAt: indexPath)
|
||||
}
|
||||
|
||||
override func collectionView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? {
|
||||
guard browsingEnabled else {
|
||||
return nil
|
||||
}
|
||||
return super.collectionView(collectionView, contextMenuConfigurationForItemAt: indexPath, point: point)
|
||||
}
|
||||
|
||||
// MARK: Timeline
|
||||
|
||||
override func handleLoadAllError(_ error: Swift.Error) async {
|
||||
|
|
Loading…
Reference in New Issue