Work on special pages
This commit is contained in:
parent
d9adfd3a91
commit
da7999fb24
7 changed files with 185 additions and 95 deletions
2
node.go
2
node.go
|
|
@ -54,6 +54,7 @@ type Node struct {
|
|||
DeletedSeq sql.NullInt64 `db:"deleted_seq"`
|
||||
Content string
|
||||
ContentEncrypted string `db:"content_encrypted" json:"-"`
|
||||
Special bool
|
||||
}
|
||||
|
||||
func NodeTree(userID, offset int, synced uint64) (nodes []TreeNode, maxSeq uint64, moreRowsExist bool, err error) { // {{{
|
||||
|
|
@ -135,6 +136,7 @@ func Nodes(userID, offset int, synced uint64, clientUUID string) (nodes []Node,
|
|||
FROM
|
||||
public.node
|
||||
WHERE
|
||||
NOT special AND
|
||||
user_id = $1 AND
|
||||
client != $5::uuid AND
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue