From c94a4184747755274980a3c1d9c35ef953d1dca8 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 14 Jul 2025 19:18:17 -0700 Subject: [PATCH] media/trust: always show if its yourself Signed-off-by: William Casarin --- crates/notedeck_ui/src/note/contents.rs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/crates/notedeck_ui/src/note/contents.rs b/crates/notedeck_ui/src/note/contents.rs index 059b263c..a4e338a7 100644 --- a/crates/notedeck_ui/src/note/contents.rs +++ b/crates/notedeck_ui/src/note/contents.rs @@ -301,11 +301,19 @@ pub fn render_note_contents( ui.add_space(2.0); let carousel_id = egui::Id::new(("carousel", note.key().expect("expected tx note"))); - let trusted_media = note_context - .accounts - .get_selected_account() - .is_following(note.pubkey()) - == IsFollowing::Yes; + let is_self = note.pubkey() + == note_context + .accounts + .get_selected_account() + .key + .pubkey + .bytes(); + let trusted_media = is_self + || note_context + .accounts + .get_selected_account() + .is_following(note.pubkey()) + == IsFollowing::Yes; media_action = image_carousel( ui,