fix: skip blurring for user's own images

This commit is contained in:
Fernando López Guevara committed 2025-06-02 12:36:42 -03:00
1 parent d9b1de9d2c
commit f3f5026719
2 files changed
+3 -2

No files matched your search

+1 -1
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)
}