fix(web): hide follow btns if my id or logged out

This commit is contained in:
əlemi 2024-05-02 02:29:29 +02:00
parent b2717223b3
commit 8f4c1a6313
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -141,7 +141,7 @@ pub fn UserPage(tl: Timeline) -> impl IntoView {
<td class="rev" title="followers">{followers}" "<span class="emoji">"📢"</span></td>
</tr>
</table>
<div class="rev mr-1">
<div class="rev mr-1" class:hidden=move || !auth.present() || auth.user_id() == uid>
{if followed_by_me {
view! { <code class="color">following</code> }.into_view()
} else {