mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
pad: Delete unused ip
and userAgent
client vars
This commit is contained in:
parent
98066184b2
commit
750c7cb1cf
4 changed files with 0 additions and 87 deletions
|
@ -133,9 +133,7 @@ exports.handleDisconnect = async (socket) => {
|
|||
data: {
|
||||
type: 'USER_LEAVE',
|
||||
userInfo: {
|
||||
ip: '127.0.0.1',
|
||||
colorId: color,
|
||||
userAgent: 'Anonymous',
|
||||
userId: session.author,
|
||||
},
|
||||
},
|
||||
|
@ -489,8 +487,6 @@ async function handleUserInfoUpdate(socket, message) {
|
|||
// set a null name, when there is no name set. cause the client wants it null
|
||||
name: message.data.userInfo.name || null,
|
||||
colorId: message.data.userInfo.colorId,
|
||||
userAgent: 'Anonymous',
|
||||
ip: '127.0.0.1',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -1095,9 +1091,7 @@ async function handleClientReady(socket, message, authorID) {
|
|||
data: {
|
||||
type: 'USER_NEWINFO',
|
||||
userInfo: {
|
||||
ip: '127.0.0.1',
|
||||
colorId: authorColorId,
|
||||
userAgent: 'Anonymous',
|
||||
userId: authorID,
|
||||
},
|
||||
},
|
||||
|
@ -1146,10 +1140,8 @@ async function handleClientReady(socket, message, authorID) {
|
|||
data: {
|
||||
type: 'USER_NEWINFO',
|
||||
userInfo: {
|
||||
ip: '127.0.0.1',
|
||||
colorId: authorInfo.colorId,
|
||||
name: authorInfo.name,
|
||||
userAgent: 'Anonymous',
|
||||
userId: authorId,
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue