Cleanups lib/web/note

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-05-24 21:09:03 +02:00
parent 280fda1d6c
commit 5a6ec56a7e
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
3 changed files with 6 additions and 21 deletions

View file

@ -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