Skip to content

Error when moving published post to draft #1166

Closed
@jbgi

Description

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to a published post (while being logged-in)
  2. Click on 'change to draft'
  3. Button change to 'moving to draft...'
  4. Nothing happen (post is still published, not in drafts)

Log says:

ERROR: 2024/12/09 12:58:42 posts.go:704: Couldn't parse post update JSON request: json: cannot unmarshal array into Go value of type writefreely.AuthenticatedPost

Expected behavior

Post moved to draft.

Application configuration

  • Multi-user mode
  • Database: mysql
  • Open registration: yes
  • Federation enabled: yes

Version or last commit: f88aa39

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions