Skip to content

Honor exclude_videos on quotes of video posts - #98

Open
Pitchfork-and-Torch wants to merge 1 commit into
xai-org:mainfrom
Pitchfork-and-Torch:fix/exclude-quoted-videos
Open

Honor exclude_videos on quotes of video posts#98
Pitchfork-and-Torch wants to merge 1 commit into
xai-org:mainfrom
Pitchfork-and-Torch:fix/exclude-quoted-videos

Conversation

@Pitchfork-and-Torch

Copy link
Copy Markdown

Bug

VideoFilter drops when min_video_duration_ms is set on the primary card. QuoteHydrator already hydrates quoted_video_duration_ms, but only when EnableQuotedVqvDurationCheck is on (ranking VQV). exclude_videos clients still saw quotes of videos.

This is not muted-keyword quoted text (PR 96). Not mute-on-quote author id (PR 23).

Fix

Fetch quoted video duration when exclude_videos is set. VideoFilter drops if either the primary or the quoted duration is present.

QuoteHydrator is skipped for cached posts (has_cached_posts). Cached quote duration is leftover if the cache payload lacks quoted_video_duration_ms.

Proof

  • Entry: QuoteHydrator get_min_video_durations
  • Sink: VideoFilter when query.exclude_videos
  • Break: filter ignored quoted_video_duration_ms; hydrator skipped duration unless VQV param
  • Viewer effect: exclude_videos request still serves a quote of a video
  • Twin: min_video_duration_ms on the primary card

Tests

  • test_removes_quotes_of_videos
  • existing primary video tests still pass
  • unit tests added; cargo test cannot run in the public dump

VideoFilter only checked min_video_duration_ms on the primary card.
QuoteHydrator already hydrates quoted_video_duration_ms, but only when
the VQV ranking param is on. Fetch that duration when exclude_videos is
set and drop quotes of videos the same as native video posts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant