m1k1o / blog

Lightweight self-hosted facebook-styled PHP blog.
https://blog.m1k1o.net
GNU General Public License v3.0
300 stars 31 forks source link

Default privacy mode #47

Closed derixithy closed 9 months ago

derixithy commented 9 months ago

How to set the default privacy mode to for example public. I will only post public posts and it would be handy if the privacy settings persist or is change able

m1k1o commented 9 months ago

You could theoretically change this value to public and you will have default privacy to public: https://github.com/m1k1o/blog/blob/afa89836d259da0b7e1351e4b84ded271c3ff2ee/static/scripts/app.js#L327

Or you can remove this line, effectively disabling privacy function and everything will be public no matter what the setting says. https://github.com/m1k1o/blog/blob/afa89836d259da0b7e1351e4b84ded271c3ff2ee/app/post.class.php#L444C35-L444C35

Then you could just hide this element with style="visibility:hidden;". https://github.com/m1k1o/blog/blob/afa89836d259da0b7e1351e4b84ded271c3ff2ee/index.php#L311-L315

derixithy commented 9 months ago

Thank you that worked!