kiosk g+ support albums
authorBernhard Tittelbach <xro@realraum.at>
Wed, 17 Apr 2013 17:24:48 +0000 (17:24 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Wed, 17 Apr 2013 17:24:48 +0000 (17:24 +0000)
raspberry-kiosk/kiosk.js

index 90addfb..6d7c33e 100644 (file)
@@ -12,7 +12,11 @@ function writeGooglePlusEvents(data, elem)
     {
       for (var a=0; a<attach.length; a++)
       {
-        if ( attach[a].objectType == "photo")
+        if ( attach[a].objectType == "album")
+        {
+          noteimg = attach[a].thumbnails[0].image.url;
+        }
+        else if ( attach[a].objectType == "photo")
         {
           noteimg = attach[a].image.url;
         }