mirror of
https://github.com/yattee/yattee.git
synced 2025-11-22 14:41:19 +00:00
The hide shorts feature is no longer working due to API changes that prevent reliable detection of short videos. This commit introduces a feature flag system to disable the functionality while preserving the ability to easily restore it if the API issue is resolved. Changes: - Add FeatureFlags.swift with hideShortsEnabled flag (currently disabled) - Hide all HideShortsButtons UI elements when flag is disabled - Disable shorts filtering logic in ContentItemView, FavoriteItemView, and FeedModel - Preserve hideShorts user preference for future restoration
9 lines
307 B
Swift
9 lines
307 B
Swift
import Foundation
|
|
|
|
/// Feature flags for enabling/disabling functionality across the app
|
|
enum FeatureFlags {
|
|
/// Controls whether the "Hide Shorts" functionality is available
|
|
/// Set to false when the API changes prevent reliable detection of short videos
|
|
static let hideShortsEnabled = false
|
|
}
|