diff --git a/crates/notedeck/src/filter.rs b/crates/notedeck/src/filter.rs index 214a870..81f1299 100644 --- a/crates/notedeck/src/filter.rs +++ b/crates/notedeck/src/filter.rs @@ -192,7 +192,11 @@ impl FilteredTags { /// Create a filter from tags. This can be used to create a filter /// from a contact list -pub fn filter_from_tags(note: &Note, add_pubkey: Option<&[u8; 32]>) -> Result { +pub fn filter_from_tags( + note: &Note, + add_pubkey: Option<&[u8; 32]>, + with_hashtags: bool, +) -> Result { let mut author_filter = Filter::new(); let mut hashtag_filter = Filter::new(); let mut author_res: Option = None; @@ -233,7 +237,7 @@ pub fn filter_from_tags(note: &Note, add_pubkey: Option<&[u8; 32]>) -> Result, ) -> Result { let our_pubkey = deck_author.map(|da| pk_src.to_pubkey_bytes(da)); - let filter = filter::filter_from_tags(contact_list, our_pubkey)?.into_follow_filter(); + let with_hashtags = false; + let filter = + filter::filter_from_tags(contact_list, our_pubkey, with_hashtags)?.into_follow_filter(); Ok(Timeline::new( TimelineKind::contact_list(pk_src), @@ -689,6 +691,7 @@ pub fn is_timeline_ready( info!("notes found for contact timeline after GotRemote!"); let note_key = res[0]; + let with_hashtags = false; let filter = { let txn = Transaction::new(ndb).expect("txn"); @@ -698,7 +701,7 @@ pub fn is_timeline_ready( .pubkey_source() .as_ref() .and_then(|pk_src| our_pk.map(|pk| pk_src.to_pubkey_bytes(pk))); - filter::filter_from_tags(¬e, add_pk).map(|f| f.into_follow_filter()) + filter::filter_from_tags(¬e, add_pk, with_hashtags).map(|f| f.into_follow_filter()) }; // TODO: into_follow_filter is hardcoded to contact lists, let's generalize