Update to support showing owner on the infobar
This commit is contained in:
@@ -205,6 +205,9 @@ function showPublishNote(req, res, next) {
|
||||
url: origin,
|
||||
body: text,
|
||||
useCDN: config.usecdn,
|
||||
owner: note.owner ? note.owner.id : null,
|
||||
ownerprofile: note.owner ? models.User.parseProfile(note.owner.profile) : null,
|
||||
lastchangeuser: note.lastchangeuser ? note.lastchangeuser.id : null,
|
||||
lastchangeuserprofile: note.lastchangeuser ? models.User.parseProfile(note.lastchangeuser.profile) : null,
|
||||
robots: meta.robots || false, //default allow robots
|
||||
GA: meta.GA,
|
||||
@@ -576,6 +579,9 @@ function showPublishSlide(req, res, next) {
|
||||
slides: slides,
|
||||
meta: JSON.stringify(obj.meta || {}),
|
||||
useCDN: config.usecdn,
|
||||
owner: note.owner ? note.owner.id : null,
|
||||
ownerprofile: note.owner ? models.User.parseProfile(note.owner.profile) : null,
|
||||
lastchangeuser: note.lastchangeuser ? note.lastchangeuser.id : null,
|
||||
lastchangeuserprofile: note.lastchangeuser ? models.User.parseProfile(note.lastchangeuser.profile) : null,
|
||||
robots: meta.robots || false, //default allow robots
|
||||
GA: meta.GA,
|
||||
|
||||
Reference in New Issue
Block a user