[gnome-software/gnome-3-32] trivial: Correctly add the FEATURED_RECOMMENDED kudo if set



commit 13a4ee4724d12d01ee2f9973acfddf88d39b3963
Author: Richard Hughes <richard hughsie com>
Date:   Sun Jul 14 18:43:27 2019 +0100

    trivial: Correctly add the FEATURED_RECOMMENDED kudo if set
    
    The name is a desktop category, and so is sentence case like 'Games'.

 plugins/core/gs-appstream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/core/gs-appstream.c b/plugins/core/gs-appstream.c
index b6f60f9c..a20604a2 100644
--- a/plugins/core/gs-appstream.c
+++ b/plugins/core/gs-appstream.c
@@ -924,7 +924,7 @@ gs_appstream_refine_app (GsPlugin *plugin,
                /* add a kudo to featured and popular apps */
                if (xb_node_query_text (component, "kudos/kudo[text()='GnomeSoftware::popular']", NULL) != 
NULL)
                        gs_app_add_kudo (app, GS_APP_KUDO_FEATURED_RECOMMENDED);
-               if (xb_node_query_text (component, "categories/category[text()='featured']", NULL) != NULL)
+               if (xb_node_query_text (component, "categories/category[text()='Featured']", NULL) != NULL)
                        gs_app_add_kudo (app, GS_APP_KUDO_FEATURED_RECOMMENDED);
 
                /* add new-style kudos */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]