@@ -153,7 +153,7 @@ fn untag_private_entry(input: UntagInput) -> ExternResult<()> {
153153 let tag_eh = hash_entry ( PrivateTag { value : input. tag } ) ?;
154154 /// Get Tag link
155155 let link_tuples =
156- get_typed_from_links :: < PrivateTag > ( link_input ( input. target . clone ( ) , TaggingLinkTypes :: PrivateTags , None ) ) ?;
156+ get_typed_from_links :: < PrivateTag > ( link_input ( input. target . clone ( ) , TaggingLinkTypes :: PrivateTags . try_into_filter ( ) . unwrap ( ) , None ) ) ?;
157157 let link_tuple: Vec < ( PrivateTag , Link ) > = link_tuples
158158 . into_iter ( )
159159 . filter ( |( tag_entry, _link) | {
@@ -167,10 +167,10 @@ fn untag_private_entry(input: UntagInput) -> ExternResult<()> {
167167 let link = link_tuple[ 0 ] . 1 . clone ( ) ;
168168
169169 /// Delete Entry -> Tag Link
170- let _ = delete_link ( link. create_link_hash ) ?;
170+ let _ = delete_link ( link. create_link_hash , GetOptions :: default ( ) ) ?;
171171 /// Get reverse link
172172 let tag_eh = hash_entry ( link_tuple[ 0 ] . 0 . clone ( ) ) ?;
173- let links = get_links ( link_input ( tag_eh, TaggingLinkTypes :: PrivateEntry , None ) ) ?;
173+ let links = get_links ( link_input ( tag_eh, TaggingLinkTypes :: PrivateEntry . try_into_filter ( ) . unwrap ( ) , None ) , GetStrategy :: Network ) ?;
174174 let link: Vec < Link > = links
175175 . into_iter ( )
176176 . filter ( |link| link. target . clone ( ) . into_entry_hash ( ) == Some ( input. target . clone ( ) ) )
@@ -179,7 +179,7 @@ fn untag_private_entry(input: UntagInput) -> ExternResult<()> {
179179 return error ( "No reverse link found for private entry tag" ) ;
180180 }
181181 /// Delete Tag Link -> Entry
182- let _ = delete_link ( link[ 0 ] . clone ( ) . create_link_hash ) ?;
182+ let _ = delete_link ( link[ 0 ] . clone ( ) . create_link_hash , GetOptions :: default ( ) ) ?;
183183 /// Done
184184 Ok ( ( ) )
185185}
@@ -191,7 +191,7 @@ pub fn find_private_tags_for_entry(eh: EntryHash) -> ExternResult<Vec<(EntryHash
191191 /// Make sure entry exist and is private
192192 let _record = query_private_entry ( eh. clone ( ) ) ?;
193193 /// Grab private tags
194- let link_tuples = get_typed_from_links :: < PrivateTag > ( link_input ( eh, TaggingLinkTypes :: PrivateTags , None ) ) ?;
194+ let link_tuples = get_typed_from_links :: < PrivateTag > ( LinkQuery :: new ( eh, TaggingLinkTypes :: PrivateTags . try_into_filter ( ) . unwrap ( ) ) ) ?;
195195 let res = link_tuples
196196 . clone ( )
197197 . into_iter ( )
@@ -213,7 +213,7 @@ pub fn find_private_entries_with_tag(tag: String) -> ExternResult<Vec<(EntryHash
213213 for tuple in private_tags {
214214 if tuple. 2 == tag {
215215 /// Found: grab links
216- let links = get_links ( link_input ( tuple. 0 , TaggingLinkTypes :: PrivateEntry , None ) ) ?;
216+ let links = get_links ( link_input ( tuple. 0 , TaggingLinkTypes :: PrivateEntry . try_into_filter ( ) . unwrap ( ) , None ) , GetStrategy :: Network ) ?;
217217 let res = links
218218 . clone ( )
219219 . into_iter ( )
0 commit comments