diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-11-30 20:31:45 -0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-12-03 07:14:47 +0100 |
commit | 454237b5a820f8f6e6493244336a013d110c2c58 (patch) | |
tree | 7f0477261a33d41396f825f17b5277db21a9925e /lib/Db | |
parent | f9f2b07d7ea36db8e4e6c8403ed3378a5b60d48f (diff) |
add type to Note
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/NotesRequest.php | 1 | ||||
-rw-r--r-- | lib/Db/NotesRequestBuilder.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/Db/NotesRequest.php b/lib/Db/NotesRequest.php index f4bf6842..36e3e930 100644 --- a/lib/Db/NotesRequest.php +++ b/lib/Db/NotesRequest.php @@ -69,6 +69,7 @@ class NotesRequest extends NotesRequestBuilder { $qb = $this->getNotesInsertSql(); $qb->setValue('id', $qb->createNamedParameter($note->getId())) + ->setValue('type', $qb->createNamedParameter($note->getType())) ->setValue('to', $qb->createNamedParameter($note->getTo())) ->setValue( 'to_array', $qb->createNamedParameter( diff --git a/lib/Db/NotesRequestBuilder.php b/lib/Db/NotesRequestBuilder.php index e6f2cb18..79be40e6 100644 --- a/lib/Db/NotesRequestBuilder.php +++ b/lib/Db/NotesRequestBuilder.php @@ -80,7 +80,7 @@ class NotesRequestBuilder extends CoreRequestBuilder { /** @noinspection PhpMethodParametersCountMismatchInspection */ $qb->select( - 'sn.id', 'sn.to', 'sn.to_array', 'sn.cc', 'sn.bcc', 'sn.content', 'sn.summary', + 'sn.id', 'sn.type', 'sn.to', 'sn.to_array', 'sn.cc', 'sn.bcc', 'sn.content', 'sn.summary', 'sn.published', 'sn.published_time', 'sn.attributed_to', 'sn.in_reply_to', 'sn.source', 'sn.local', 'sn.instances', 'sn.creation' ) |