mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 15:06:38 +02:00
setFields makes more sense
This commit is contained in:
@@ -143,7 +143,7 @@ var async = require('async'),
|
||||
pid: pid
|
||||
};
|
||||
data[field] = value;
|
||||
plugins.fireHook('action:post.setField', data);
|
||||
plugins.fireHook('action:post.setFields', data);
|
||||
callback();
|
||||
});
|
||||
};
|
||||
@@ -154,7 +154,7 @@ var async = require('async'),
|
||||
return callback(err);
|
||||
}
|
||||
data.pid = pid;
|
||||
plugins.fireHook('action:post.setField', data);
|
||||
plugins.fireHook('action:post.setFields', data);
|
||||
callback();
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user