forked from GNUsocial/gnu-social
save title and description of bookmark
This commit is contained in:
parent
f641034471
commit
85d54cbdb7
@ -66,7 +66,12 @@ class BookmarkPlugin extends Plugin
|
|||||||
'integer',
|
'integer',
|
||||||
null,
|
null,
|
||||||
true,
|
true,
|
||||||
'PRI')));
|
'PRI'),
|
||||||
|
new ColumnDef('title',
|
||||||
|
'varchar',
|
||||||
|
255),
|
||||||
|
new ColumnDef('description',
|
||||||
|
'text')));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -181,6 +181,8 @@ class NewbookmarkAction extends Action
|
|||||||
if (!empty($saved)) {
|
if (!empty($saved)) {
|
||||||
$nb = new Notice_bookmark();
|
$nb = new Notice_bookmark();
|
||||||
$nb->notice_id = $saved->id;
|
$nb->notice_id = $saved->id;
|
||||||
|
$nb->title = $this->_title;
|
||||||
|
$nb->description = $this->_description;
|
||||||
$nb->insert();
|
$nb->insert();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user