picosh / pico

hacker labs - open source and managed web services leveraging SSH
https://pico.sh
MIT License
774 stars 28 forks source link

Fix for the 'draft/hidden' value not updating #21

Closed hoelter closed 1 year ago

hoelter commented 1 year ago

This change ensures the 'hidden' value gets updated when the draft attribute is modified.

I tested this running prose ssh locally and scp'ing various files modifying the draft back and forth to ensure it updated. Also tried with new files using draft and not using draft, adding draft after the fact, etc.

I'm new to golang and this codebase, so it's very possible I missed something with this.