freeCodeCamp / publish

> Content backend platform for /news
https://publish.freecodecamp.org
BSD 3-Clause "New" or "Revised" License
10 stars 9 forks source link

author value gets changed to whoever published/scheduled the post #436

Closed sidemt closed 4 months ago

sidemt commented 4 months ago

Describe the bug When a Editor user publishes a post, the author value is changed to who published the post. It also happens when you select Schedule it for later.

To Reproduce Steps to reproduce the behavior:

  1. Log in with a user with Editor role
  2. Go to any draft post that was written by any other user
  3. Publish the post
  4. Go back to /posts index and find the post you just published

Expected behavior The author value should not be changed