Skip to content

Node.js based forum software built for the modern web

adding timestamp to topic action hooks

psychobunny47a86662de9f
diff --git a/src/threadTools.js b/src/threadTools.js
index f872cb36be..5539af3b39 100644
--- a/src/threadTools.js
+++ b/src/threadTools.js
@@ -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()
});
});
};