From b44f1000e171b692ebb5c2fe6e54a59d834388c6 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 12 Aug 2024 01:38:43 +0200 Subject: [PATCH] fix(web): sensitive cover also for obj images --- web/src/objects/item.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/web/src/objects/item.rs b/web/src/objects/item.rs index 332c838..2ac0355 100644 --- a/web/src/objects/item.rs +++ b/web/src/objects/item.rs @@ -1,7 +1,7 @@ use std::sync::Arc; use leptos::*; -use crate::prelude::*; +use crate::{prelude::*, URL_SENSITIVE}; use apb::{field::OptionalString, target::Addressed, ActivityMut, Base, Collection, CollectionMut, Object, ObjectMut}; @@ -119,7 +119,16 @@ pub fn Object(object: crate::Object) -> impl IntoView { let post_image = object.image().get().and_then(|x| x.url().id().str()).map(|x| { let (expand, set_expand) = create_signal(false); view! { - + } });