]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
reindent BookmarkPlugin
authorEvan Prodromou <evan@status.net>
Mon, 20 Dec 2010 18:35:30 +0000 (13:35 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 20 Dec 2010 18:35:30 +0000 (13:35 -0500)
plugins/Bookmark/BookmarkPlugin.php

index 14b1f1d2a5f918a717cf1e16ba7008e041dee018..50c28363c6d8b1eeaede8b9e204ee2e7ff758963 100644 (file)
@@ -107,20 +107,20 @@ class BookmarkPlugin extends Plugin
                $dir = dirname(__FILE__);
 
                switch ($cls)
-               {
-               case 'NewbookmarkAction':
-                       include_once $dir.'/newbookmark.php';
+            {
+            case 'NewbookmarkAction':
+                include_once $dir.'/newbookmark.php';
+                return false;
+            case 'Notice_bookmark':
+                include_once $dir.'/'.$cls.'.php';
+                return false;
+            case 'BookmarkForm':
+            case 'DeliciousBackupImporter':
+                include_once $dir.'/'.strtolower($cls).'.php';
                        return false;
-               case 'Notice_bookmark':
-                       include_once $dir.'/'.$cls.'.php';
-                       return false;
-               case 'BookmarkForm':
-               case 'DeliciousBackupImporter':
-                       include_once $dir.'/'.strtolower($cls).'.php';
-                       return false;
-               default:
-                       return true;
-               }
+            default:
+                return true;
+            }
        }
 
        /**
@@ -203,7 +203,8 @@ class BookmarkPlugin extends Plugin
                        $object->id      = $notice->uri;
                        $object->type    = ActivityObject::BOOKMARK;
                        $object->title   = $nb->title;
-                       $object->summary = $nb->summary;
+                       $object->summary = $nb->description;
+            $object->link    = $notice->bestUrl();
 
                        // Attributes of the URL