Skip to content

Feeds: no empty space on a card with only a title; a pushed YouTube video gets its description - #347

Merged
liamt8d merged 1 commit into
mainfrom
feat/card-no-empty-description
Oct 27, 2026
Merged

liamt8d merged 1 commit into
mainfrom
feat/card-no-empty-description

Conversation

@liamt8d

@liamt8d liamt8d commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

What changes

1. No empty space under a title. A feed card is a section (text + the picture of the account on the right). Discord makes a section as tall as its picture, so when the only text is the title, one line sat on top of an empty space. Now a card whose only text is the title (no description and no extra line) is a plain text display, without the picture of the account; with a description the card is unchanged.

2. A pushed YouTube video gets its description. The entry a push carries has no description (#344 uses those entries to post without waiting for the feed), so those cards had none, which showed the empty space above. The call that already asks whether the videos are live (videos?part=snippet,liveStreamingDetails) returns the description too, so it is read from there when the feed entry has none: no extra quota.

How it was checked

check-feeds: a title alone is plain text and a card with a description is still a section; a video that came from a push (the feed does not show it) is posted with the description of the live call. The whole npm run check passes, also with an empty environment like the CI.

Note: a video whose description is only links or hashtags still has no first line to show (the first line that says something is used), so it also gets the compact card.

@liamt8d
liamt8d merged commit feb7054 into main Oct 27, 2026
4 checks passed
@liamt8d
liamt8d deleted the feat/card-no-empty-description branch October 27, 2026 20:39
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