Add Twitter video support and use sql.Null[T] for nullable columns

- Store Twitter video URLs in embed_video_url column instead of downloading
- Play videos directly from Twitter's CDN in <video> element
- Fix Twitter API parsing (content_type/url fields)
- Strip t.co URLs from tweet text descriptions
- Use sql.Null[T] generic type for nullable DB columns
- Add Nullable[T] and Ptr[T] helper functions
- Add play indicator overlay for video items in grid
- Add migration for embed_video_url column
This commit is contained in:
soup 2026-01-17 01:23:32 -05:00
parent cdcc5b5293
commit 2887d9c430
Signed by: soup
SSH key fingerprint: SHA256:GYxje8eQkJ6HZKzVWDdyOUF1TyDiprruGhE0Ym8qYDY
8 changed files with 226 additions and 120 deletions

View file

@ -238,6 +238,22 @@ button, input, textarea, select {
font-size: 2rem;
}
/* Play Indicator */
.play-indicator {
position: absolute;
bottom: 0.5rem;
right: 0.5rem;
width: 2rem;
height: 2rem;
background: rgba(0,0,0,0.7);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75rem;
pointer-events: none;
}
/* Item Tags */
.item-tags {
display: flex;