mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
new hook filter:topics.get
This commit is contained in:
@@ -289,7 +289,6 @@ var async = require('async'),
|
|||||||
post.content = results.content;
|
post.content = results.content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
callback(null, post);
|
callback(null, post);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ var async = require('async'),
|
|||||||
return !!topic;
|
return !!topic;
|
||||||
});
|
});
|
||||||
|
|
||||||
callback(null, topics);
|
plugins.fireHook('filter:topics.get', topics, callback);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user