Skip to content

Content warnings always collapsed in Phanpy — reading:expand:spoilers appears hardcoded to false #425

@CR0CKER

Description

@CR0CKER

Summary

When using Phanpy with a Hollo instance, content warnings appear to be permanently collapsed with no way to change this default. The likely cause is that GET /api/v1/preferences returns "reading:expand:spoilers": false as a hardcoded value, and Phanpy has no built-in UI to override it — it relies on the server preference.

Steps to reproduce

  1. Connect Phanpy to a Hollo instance
  2. Observe that all CW posts are collapsed by default
  3. Check that there is no setting in Phanpy to change this — Phanpy defers to the server preference
  4. Verify: curl -H "Authorization: Bearer <token>" https://<hollo-instance>/api/v1/preferences returns "reading:expand:spoilers": false

Expected behavior

Users should be able to configure whether content warnings are expanded by default. If Hollo does not yet have a settings UI for this, changing the hardcoded value from false to true would at minimum be a safer default — unexpectedly hiding content is generally worse UX than showing it.

Notes

We haven't verified this exhaustively against the Phanpy source or other clients, so some details may be off. But the core issue — that reading:expand:spoilers appears hardcoded in the preferences endpoint with no way for the user to change it — seems clear from inspecting src/api/v1/index.ts, which appears to have a // TODO comment on the preferences handler.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions