@ -94,6 +94,9 @@ Executed when a post or signature needs to be parsed from raw text to HTML (for
``filter:post.parse``
^^^^^^^^^^^^^^^^^^^^^
``filter:messaging.save``
^^^^^^^^^^^^^^^^^^^^^^^^
``filter:messaging.parse``
@ -28,6 +28,11 @@ var db = require('./database'),
touid: touid
};
plugins.fireHook('filter:messaging.save', message, function(err, message) {
if (err) {
return callback(err);
}
db.setObject('message:' + mid, message, function(err) {
@ -43,6 +48,7 @@ var db = require('./database'),
});
Messaging.getMessages = function(fromuid, touid, isNew, callback) {