remove duplicate shared-tag in xml - the android apps dont like this
[scuttle] / api / posts_all.php
index 747741a695b94f0bf28f01a419a7976fa1f67335..9abf181e1b2e7a39a45807ba75ea5369b560de4f 100644 (file)
@@ -52,7 +52,7 @@ foreach($bookmarks['bookmarks'] as $row) {
         $shared = "yes";
     }
 
-    echo "\t<post href=\"". filter($row['bAddress'], 'xml') .'" shared="' . $shared . '" description="'. filter($row['bTitle'], 'xml') .'" '. $description .'hash="'. md5($row['bAddress']) . ($row['bStatus'] ? '" shared="no' : '') .'" tag="'. filter($taglist, 'xml') .'" time="'. gmdate('Y-m-d\TH:i:s\Z', strtotime($row['bDatetime'])) ."\" />\r\n";
+    echo "\t<post href=\"". filter($row['bAddress'], 'xml') .'" shared="' . $shared . '" description="'. filter($row['bTitle'], 'xml') .'" '. $description .'hash="'. md5($row['bAddress']) .'" tag="'. filter($taglist, 'xml') .'" time="'. gmdate('Y-m-d\TH:i:s\Z', strtotime($row['bDatetime'])) ."\" />\r\n";
 }
 
 echo '</posts>';

Benjamin Mako Hill || Want to submit a patch?