adding timestamp to topic action hooks

v1.18.x
psychobunny 11 years ago
parent df37c1e235
commit 47a86662de

@ -120,7 +120,8 @@ var winston = require('winston'),
plugins.fireHook('action:topic.lock', {
tid: tid,
isLocked: lock,
uid: uid
uid: uid,
timestamp: Date.now()
});
emitTo('topic_' + tid);
@ -164,7 +165,8 @@ var winston = require('winston'),
plugins.fireHook('action:topic.pin', {
tid: tid,
isPinned: pin,
uid: uid
uid: uid,
timestamp: Date.now()
});
emitTo('topic_' + tid);
@ -212,7 +214,8 @@ var winston = require('winston'),
tid: tid,
fromCid: oldCid,
toCid: cid,
uid: uid
uid: uid,
timestamp: Date.now()
});
});
};

Loading…
Cancel
Save