Skip to content

feat: store anime title on room creation for OGP#169

Merged
Uno-Takashi merged 1 commit into
mainfrom
feature/room-anime-title
Jun 21, 2026
Merged

feat: store anime title on room creation for OGP#169
Uno-Takashi merged 1 commit into
mainfrom
feature/room-anime-title

Conversation

@Uno-Takashi

Copy link
Copy Markdown
Member

What

Persist the currently-playing anime title on AnimeRoom, captured once at room creation, so the frontend can render rich Open Graph cards for room links.

Changes

  • AnimeRoom.title (CharField(max_length=255, blank=True, default=""))
  • create WebSocket action accepts an optional title (defaults to "")
  • database_create_room saves it
  • Lobby resolve API returns title
  • admin list_display, factory, and tests updated (create saves title; lobby returns it)

Backward compatibility

  • Old extensions that don't send title keep working (create(..., title=""), and **kwargs absorbs the extra field on the old server).
  • The field is additive; the lobby response simply gains a key.

Migrations

This repo gitignores migrations/; run makemigrations streamer + migrate on deploy to add the title column (the new column is required for room creation to succeed).

Tests

uv run pytest → 11 passed (incl. new title + lobby tests).

🤖 Generated with Claude Code

Add a `title` field to AnimeRoom, captured once at room creation. The
WebSocket `create` action now accepts an optional `title` (defaults to ""
so older extension versions that don't send it keep working), and the
lobby resolve API returns it for the frontend's Open Graph metadata.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Uno-Takashi Uno-Takashi merged commit ae47527 into main Jun 21, 2026
18 of 19 checks passed
@Uno-Takashi Uno-Takashi deleted the feature/room-anime-title branch June 21, 2026 10: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