[tracker] rss: Account for a same feed message coming from different channels
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] rss: Account for a same feed message coming from different channels
- Date: Thu, 16 Jul 2015 23:33:23 +0000 (UTC)
commit 832baf7d4c0dd5aab245065d5ba594d958163d4d
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jul 17 01:26:24 2015 +0200
rss: Account for a same feed message coming from different channels
Unfortunately the nmo:communicationChannel docs are very explicit about
the property cardinality. So we just create the mfo:FeedMessage for
the first channel, and make it bail out any next time it would be
added, from the same mfo:FeedChannel or another.
https://bugzilla.gnome.org/show_bug.cgi?id=752484
src/miners/rss/tracker-miner-rss.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/miners/rss/tracker-miner-rss.c b/src/miners/rss/tracker-miner-rss.c
index 96b19cd..eda8716 100644
--- a/src/miners/rss/tracker-miner-rss.c
+++ b/src/miners/rss/tracker-miner-rss.c
@@ -776,22 +776,16 @@ feed_item_check_exists (TrackerMinerRSS *miner,
GrssFeedItem *item)
{
FeedItemInsertData *fiid;
- GrssFeedChannel *feed;
gchar *query;
- gchar *communication_channel;
const gchar *url;
url = get_message_url (item);
- feed = grss_feed_item_get_parent (item);
- communication_channel = g_object_get_data (G_OBJECT (feed), "subject");
query = g_strdup_printf ("ASK {"
" ?message a mfo:FeedMessage ;"
- " nie:url \"%s\";"
- " nmo:communicationChannel <%s> "
+ " nie:url \"%s\""
"}",
- url,
- communication_channel);
+ url);
fiid = feed_item_insert_data_new (miner, item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]