audio streaming app
plyr.fm
title: activity sidebarTitle: activity#
backend.api.activity#
activity feed — platform-wide chronological event stream.
Functions#
get_activity_feed source#
get_activity_feed(db: Annotated[AsyncSession, Depends(get_db)], cursor: str | None = Query(None), limit: int = Query(20)) -> ActivityFeedResponse
get the platform-wide activity feed.
get_activity_histogram source#
get_activity_histogram(db: Annotated[AsyncSession, Depends(get_db)], days: int = Query(7, ge=1, le=30)) -> ActivityHistogramResponse
get activity counts per day for the sparkline.
Classes#
ActivityActor source#
actor who performed the activity.
Methods:
normalize_avatar source#
normalize_avatar(cls, v: str | None) -> str | None
ActivityTrack source#
track referenced in an activity event.
Methods:
normalize_avatar source#
normalize_avatar(cls, v: str | None) -> str | None
ActivityCollection source#
collection referenced in an activity event.
ActivityEvent source#
single activity event.
ActivityFeedResponse source#
paginated activity feed.
ActivityHistogramBucket source#
single day in the activity histogram.
ActivityHistogramResponse source#
activity counts per day over a time window.