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

@@ -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)
}