Xyphyn / photon

A replacement for lemmy-ui with more features, a better design, and more customizability.
https://phtn.app
GNU Affero General Public License v3.0
348 stars 39 forks source link

fix: hide guest actions in locked instance mode #379

Closed sevonj closed 1 month ago

sevonj commented 1 month ago

Related issues: #328

This hides guest login / logout buttons if photon is linked to an instance. Adding guests doesn't work with linked instances, which made guest logout especially infuriating since the only way I could get the guest user back was by removing logged in accounts.

Before ![Screenshot_20240725_133540](https://github.com/user-attachments/assets/8759920c-7bc0-45d4-bca0-afa904b222ce) ![image](https://github.com/user-attachments/assets/c76a1e20-6799-48f2-ae43-f4b22455cd88)
After ![Screenshot_20240725_134112](https://github.com/user-attachments/assets/8d26bb81-8363-48ac-a075-0abaa3a76905) ![Screenshot_20240725_133601](https://github.com/user-attachments/assets/d88edf07-13a7-4b00-8742-a7ccb66a35e1)
vercel[bot] commented 1 month ago

@sevonj is attempting to deploy a commit to the Xylight's projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
photon ✅ Ready (Inspect) Visit Preview Jul 25, 2024 4:03pm
sevonj commented 1 month ago

I think you forgot the add guest button in the accounts page.

It had the check already?

https://github.com/Xyphyn/photon/blob/4f52aa668c2e3abfa52098ca15fb7a6b5d554426/src/routes/accounts/%2Bpage.svelte#L263-L268

Xyphyn commented 1 month ago

I think you forgot the add guest button in the accounts page.

It had the check already?

https://github.com/Xyphyn/photon/blob/4f52aa668c2e3abfa52098ca15fb7a6b5d554426/src/routes/accounts/%2Bpage.svelte#L263-L268

Yeah I realized, I couldn't view the full file on mobile.