From 15f4e0a9f08fb5691a9436fc27c7ce9cda2fa30d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 20 Dec 2010 13:35:30 -0500 Subject: [PATCH] reindent BookmarkPlugin --- plugins/Bookmark/BookmarkPlugin.php | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) 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 -- 2.39.5