mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
Cleanups lib/web/note
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
280fda1d6c
commit
5a6ec56a7e
3 changed files with 6 additions and 21 deletions
|
@ -2,7 +2,7 @@ import { Request, Response } from 'express'
|
|||
import { config } from '../../config'
|
||||
import { errors } from '../../errors'
|
||||
import { logger } from '../../logger'
|
||||
import { Note, User } from '../../models'
|
||||
import { Note } from '../../models'
|
||||
import * as ActionController from './actions'
|
||||
import * as NoteUtils from './util'
|
||||
|
||||
|
@ -24,13 +24,6 @@ export function publishNoteActions (req: Request, res: Response): void {
|
|||
}
|
||||
|
||||
export function showPublishNote (req: Request, res: Response): void {
|
||||
const include = [{
|
||||
model: User,
|
||||
as: 'owner'
|
||||
}, {
|
||||
model: User,
|
||||
as: 'lastchangeuser'
|
||||
}]
|
||||
NoteUtils.findNoteOrCreate(req, res, function (note) {
|
||||
// force to use short id
|
||||
const shortid = req.params.shortid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue