From a14e7953b5a2196eda001229d44ebb2e9c18fe7c Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sat, 30 Jul 2016 11:28:24 +0800 Subject: Add support of showing authorship in editor and adjust related styles --- lib/realtime.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/realtime.js') diff --git a/lib/realtime.js b/lib/realtime.js index 68089570..7e93f20a 100644 --- a/lib/realtime.js +++ b/lib/realtime.js @@ -65,7 +65,9 @@ function emitCheck(note) { var out = { updatetime: note.updatetime, lastchangeuser: note.lastchangeuser, - lastchangeuserprofile: note.lastchangeuserprofile + lastchangeuserprofile: note.lastchangeuserprofile, + authors: note.authors, + authorship: note.authorship }; realtime.io.to(note.id).emit('check', out); } @@ -314,6 +316,8 @@ function emitRefresh(socket) { ownerprofile: note.ownerprofile, lastchangeuser: note.lastchangeuser, lastchangeuserprofile: note.lastchangeuserprofile, + authors: note.authors, + authorship: note.authorship, permission: note.permission, createtime: note.createtime, updatetime: note.updatetime -- cgit v1.2.3