]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix bugs in BookmarkPlugin
authorEvan Prodromou <evan@status.net>
Mon, 27 Dec 2010 05:25:26 +0000 (21:25 -0800)
committerEvan Prodromou <evan@status.net>
Mon, 27 Dec 2010 05:25:26 +0000 (21:25 -0800)
plugins/Bookmark/BookmarkPlugin.php

index 53121276b1f0cb874ce988631c4c41711fd663a1..f18c60c58679b6f2a00b4d1275a01e079472b791 100644 (file)
@@ -345,7 +345,7 @@ class BookmarkPlugin extends Plugin
                 $attrs['title'] = $target->title;
             }
 
-            $object->extra[] = array('link', $attrs);
+            $object->extra[] = array('link', $attrs, null);
                                                    
             // Attributes of the thumbnail, if any
 
@@ -363,7 +363,7 @@ class BookmarkPlugin extends Plugin
                     $tattrs['media:height'] = $thumbnail->height;
                 }
 
-                $object->extra[] = array('link', $attrs);
+                $object->extra[] = array('link', $attrs, null);
             }
 
             return false;
@@ -487,7 +487,7 @@ class BookmarkPlugin extends Plugin
 
         $options = array('uri' => $bookmark->id,
                          'url' => $bookmark->link,
-                         'created' => common_sql_time($activity->time),
+                         'created' => common_sql_date($activity->time),
                          'is_local' => Notice::REMOTE_OMB,
                          'source' => 'ostatus');