mirror of
https://github.com/JanGross/quicknotes.git
synced 2026-12-01 02:17:00 +01:00
add share icon to owner's note as well
This commit is contained in:
1 parent
a19bc47bd3
commit
c84dbf4d97
5 files changed
+26
-2
No files matched your search
@@ -26,6 +26,11 @@ class NoteShareMapper extends Mapper {
|
||||
return $this->findEntities($sql, [$groupId]);
|
||||
}
|
||||
|
||||
public function getSharesForNote($noteId) {
|
||||
$sql = 'SELECT * FROM *PREFIX*quicknotes_shares WHERE note_id = ?';
|
||||
return $this->findEntities($sql, [$noteId]);
|
||||
}
|
||||
|
||||
public function deleteByNoteId($noteId) {
|
||||
$sql = 'DELETE FROM *PREFIX*quicknotes_shares WHERE note_id = ?';
|
||||
$this->execute($sql, [$noteId]);
|
||||
|
||||
Reference in new issue
Block a user