Skip to content

Preference to autoplay videos muted in card view #29

@PortableProgrammer

Description

@PortableProgrammer

Problem

Card-view videos currently autoplay muted (src/mixins/post.pug:52autoplay="" muted=""). Add a user preference to disable this for users who find it distracting or are on metered connections.

Schema

New column pref_autoplayVideos (boolean, default 1 to preserve current behavior).

Touches

  • DB migration in src/db.js
  • prefToColumn map in src/routes/index.js
  • get_user_prefs helper
  • Dashboard checkbox in src/views/dashboard.pug
  • Template conditional on the autoplay attribute at src/mixins/post.pug:52

Out of scope

Detail view at src/mixins/post.pug:84 currently shows controls without autoplay — no change there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions