src/js/widgets/tweetsWidget.js
branchpopcorn-port
changeset 820 7968346b9689
parent 554 de53cbe1b052
child 842 4ae2247a59f4
--- a/src/js/widgets/tweetsWidget.js	Tue Feb 21 17:26:51 2012 +0100
+++ b/src/js/widgets/tweetsWidget.js	Wed Feb 29 18:13:14 2012 +0100
@@ -25,8 +25,8 @@
     var imageMarkup = IriSP.templToHTML("<img src='{{src}}' alt='user image'></img>", 
                                        {src : img});
     
-    if (typeof(annotation.meta["dc:source"].content) !== "undefined") {
-      var tweetContents = JSON.parse(annotation.meta["dc:source"].content);
+    if (typeof(IriSP.get_aliased(annotation.meta, ["dc:source", "source"]).content) !== "undefined") {
+      var tweetContents = JSON.parse(IriSP.get_aliased(annotation.meta, ["dc:source", "source"]).content);
       var creator = tweetContents.user.screen_name;
       var real_name = tweetContents.user.name;