From: Evan Prodromou Date: Mon, 20 Dec 2010 18:35:30 +0000 (-0500) Subject: reindent BookmarkPlugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=15f4e0a9f08fb5691a9436fc27c7ce9cda2fa30d;p=quix0rs-gnu-social.git reindent BookmarkPlugin --- diff --git a/plugins/Bookmark/BookmarkPlugin.php b/plugins/Bookmark/BookmarkPlugin.php index 14b1f1d2a5..50c28363c6 100644 --- a/plugins/Bookmark/BookmarkPlugin.php +++ b/plugins/Bookmark/BookmarkPlugin.php @@ -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