summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWu Cheng-Han2016-07-30 11:28:24 +0800
committerWu Cheng-Han2016-07-30 11:28:24 +0800
commita14e7953b5a2196eda001229d44ebb2e9c18fe7c (patch)
tree39dfada7d341cc3754a63ab68b82ebc9f6d0166a /lib
parentd5549c6a8443ee1ca38fe8136465ac9377a2c8f9 (diff)
Add support of showing authorship in editor and adjust related styles
Diffstat (limited to 'lib')
-rw-r--r--lib/realtime.js6
1 files changed, 5 insertions, 1 deletions
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