From 4cda2090de1560e242af44c0a05c990f3c5ea53e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 14 Jun 2008 04:42:20 +0000 Subject: filter needed on search updates --- src/plugins/fs/search.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/plugins/fs/search.c b/src/plugins/fs/search.c index e282bf1e..f1e8537f 100644 --- a/src/plugins/fs/search.c +++ b/src/plugins/fs/search.c @@ -339,6 +339,7 @@ fs_search_update (SearchList * searchContext, unsigned int availability_certainty, unsigned int applicability_rank) { + enum GNUNET_URITRACK_STATE state; GtkTreeStore *model; GtkTreeIter iter; struct GNUNET_ECRS_URI *have; @@ -346,6 +347,14 @@ fs_search_update (SearchList * searchContext, long long rank; unsigned int kwords; + state = GNUNET_URITRACK_get_state (ectx, cfg, info->uri); + if ((state & (GNUNET_URITRACK_INSERTED | + GNUNET_URITRACK_INDEXED)) && + (GNUNET_YES == GNUNET_GC_get_configuration_value_yesno (cfg, + "GNUNET-GTK", + "DISABLE-OWN", + GNUNET_NO))) + return; kwords = GNUNET_ECRS_uri_get_keyword_count_from_ksk (searchContext->uri); model = GTK_TREE_STORE (gtk_tree_view_get_model (searchContext->treeview)); /* find existing entry */ -- cgit v1.2.3