]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
save title and description of bookmark
authorEvan Prodromou <evan@status.net>
Sat, 18 Dec 2010 07:36:13 +0000 (02:36 -0500)
committerEvan Prodromou <evan@status.net>
Sat, 18 Dec 2010 07:36:13 +0000 (02:36 -0500)
plugins/Bookmark/BookmarkPlugin.php
plugins/Bookmark/newbookmark.php

index cf014cc82a0a548d5932ca8b89aeeb858ea6a23f..a3067a9eb14affd94fb2132d59390eef1350d066 100644 (file)
@@ -66,7 +66,12 @@ class BookmarkPlugin extends Plugin
                                                                                                 'integer',
                                                                                                 null,
                                                                                                 true,
-                                                                                                'PRI')));
+                                                                                                'PRI'),
+                                                                  new ColumnDef('title',
+                                                                                                'varchar',
+                                                                                                255),
+                                                                  new ColumnDef('description',
+                                                                                                'text')));
 
                return true;
        }
index 034e73b429ba1e2c70ded88b0fd03a5216325f30..7352b1b952789695364da5ec88b7452bf8db5f68 100644 (file)
@@ -180,7 +180,9 @@ class NewbookmarkAction extends Action
 
                        if (!empty($saved)) {
                                $nb = new Notice_bookmark();
-                               $nb->notice_id = $saved->id;
+                               $nb->notice_id   = $saved->id;
+                               $nb->title       = $this->_title;
+                               $nb->description = $this->_description;
                                $nb->insert();
                        }