~evanj/cms

f4362a4175b569eb2b18199a45525b0022b41478 — Evan M Jones 4 months ago f758a22
Fix(db/content.go): Quickfix for broken content search (accidently
messed up last commit -- didn't test it).
2 files changed, 2 insertions(+), 2 deletions(-)

M TODO
M internal/s/db/content.go
M TODO => TODO +1 -0
@@ 7,6 7,7 @@ Provide a Go API under git.sr.ht/~evanj/cms (move from
  git.sr.ht/~evanj/evanjon.es) and provide more fine-grained ways to interact
  with content/contentype search APIs.
Add "after" pagination option.
In ContentSearch use transaction on ContentGet.

[revisit] 
Fullscreen takeover for html/markdown editors.

M internal/s/db/content.go => internal/s/db/content.go +1 -2
@@ 893,7 893,6 @@ func (db *DB) ContentSearch(space space.Space, ct contenttype.ContentType, sortF

	before = beformat(before)

	// TODO: Move:
	t, err := db.Begin()
	if err != nil {
		return nil, err


@@ 960,7 959,7 @@ func (db *DB) ContentSearch(space space.Space, ct contenttype.ContentType, sortF
			return nil, err
		}

		c, err := db.contentGet(t, space, ct, tmpContentID, defaultDepth)
		c, err := db.ContentGet(space, ct, tmpContentID)
		if err != nil {
			return nil, err
		}