err:=app.db.QueryRow("SELECT owner_id, title, content, text_appearance, view_count, language, rtl FROM posts WHERE id = ?",friendlyID).Scan(&ownerID,&title,&content,&font,&views,&language,&rtl)
err:=app.db.QueryRow("SELECT owner_id, collection_id, title, content, text_appearance, view_count, language, rtl FROM posts WHERE id = ?",friendlyID).Scan(&ownerID,&collectionID,&title,&content,&font,&views,&language,&rtl)
switch{
switch{
caseerr==sql.ErrNoRows:
caseerr==sql.ErrNoRows:
found=false
found=false
@ -426,6 +427,16 @@ func handleViewPost(app *App, w http.ResponseWriter, r *http.Request) error {