mirror of
https://github.com/yattee/yattee.git
synced 2025-11-22 06:31:26 +00:00
Add feature flag to disable hide shorts functionality
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
This commit is contained in:
@@ -235,7 +235,7 @@ final class FeedModel: ObservableObject, CacheModel {
|
||||
let watches = watchFetchRequestResult(videos, context: backgroundContext)
|
||||
let watchesIDs = watches.map(\.videoID)
|
||||
let unwatched = videos.filter { video in
|
||||
if Defaults[.hideShorts], video.short {
|
||||
if FeatureFlags.hideShortsEnabled, Defaults[.hideShorts], video.short {
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user