[folks] Properly handle 'url' TYPE for URLs in Tracker backend.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Properly handle 'url' TYPE for URLs in Tracker backend.
- Date: Fri, 26 Aug 2011 16:50:46 +0000 (UTC)
commit be452e9eb223a7b246b8b9bd742901a5e7c3b9b1
Author: Travis Reitter <travis reitter collabora co uk>
Date: Fri Aug 26 09:41:05 2011 -0700
Properly handle 'url' TYPE for URLs in Tracker backend.
backends/tracker/lib/trf-persona-store.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/backends/tracker/lib/trf-persona-store.vala b/backends/tracker/lib/trf-persona-store.vala
index adbbd90..e2f00ac 100644
--- a/backends/tracker/lib/trf-persona-store.vala
+++ b/backends/tracker/lib/trf-persona-store.vala
@@ -1162,6 +1162,8 @@ public class Trf.PersonaStore : Folks.PersonaStore
Trf.OntologyDefs.NCO_WEBSITE);
this._urn_prefix.set (Trf.OntologyDefs.NCO_URL_PREFIX + "nco#blogUrl>",
Trf.OntologyDefs.NCO_BLOG);
+ this._urn_prefix.set (Trf.OntologyDefs.NCO_URL_PREFIX + "nco#url>",
+ Trf.OntologyDefs.NCO_URL);
this._urn_prefix.set (
Trf.OntologyDefs.NAO_URL_PREFIX + "nao#predefined-tag-favorite>",
Trf.OntologyDefs.NAO_FAVORITE);
@@ -2393,6 +2395,10 @@ public class Trf.PersonaStore : Folks.PersonaStore
{
related_connection = Trf.OntologyDefs.NCO_WEBSITE;
}
+ else if (type_p.contains ("url"))
+ {
+ related_connection = Trf.OntologyDefs.NCO_URL;
+ }
attr = "'%s'".printf (((UrlFieldDetails) fd).value);
break;
case Trf.Attrib.IM_ADDRESSES:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]