fix: skip blurring for user's own images

This commit is contained in:
Fernando López Guevara
2025-06-02 12:36:42 -03:00
parent d9b1de9d2c
commit f3f5026719
2 changed files with 3 additions and 2 deletions

View File

@@ -410,7 +410,8 @@ impl<'a, 'd> TimelineTabView<'a, 'd> {
let zapping_acc = self
.cur_acc
.as_ref()
.filter(|_| self.note_context.current_account_has_wallet);
.filter(|_| self.note_context.current_account_has_wallet)
.or(self.cur_acc.as_ref());
notedeck_ui::padding(8.0, ui, |ui| {
let resp = NoteView::new(

View File

@@ -17,7 +17,7 @@ pub fn trust_media_from_pk2(
pk1: Option<&[u8; 32]>,
pk2: &[u8; 32],
) -> bool {
pk1.map(|pk| pk1_is_following_pk2(ndb, txn, pk, pk2).unwrap_or(false))
pk1.map(|pk| pk == pk2 || pk1_is_following_pk2(ndb, txn, pk, pk2).unwrap_or(false))
.unwrap_or(false)
}