mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
send array of posts
This commit is contained in:
@@ -641,7 +641,7 @@ var fs = require('fs'),
|
||||
async.each(installedPlugins, function(plugin, next) {
|
||||
|
||||
pluginMap[plugin.name] = pluginMap[plugin.name] || {};
|
||||
pluginMap[plugin.name].id = pluginMap[plugin.name].id || plugin.name;
|
||||
pluginMap[plugin.name].id = pluginMap[plugin.name].id || plugin.id;
|
||||
pluginMap[plugin.name].name = pluginMap[plugin.name].name || plugin.name;
|
||||
pluginMap[plugin.name].description = plugin.description;
|
||||
pluginMap[plugin.name].url = pluginMap[plugin.name].url || plugin.url;
|
||||
|
||||
@@ -38,7 +38,7 @@ SocketTopics.post = function(socket, data, callback) {
|
||||
}
|
||||
|
||||
callback(null, result.topicData);
|
||||
socket.emit('event:new_post', {posts: result.postData});
|
||||
socket.emit('event:new_post', {posts: [result.postData]});
|
||||
socket.emit('event:new_topic', result.topicData);
|
||||
|
||||
var uids = websockets.getConnectedClients();
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
<div class="pull-right">
|
||||
<button data-action="toggleActive" class="btn <!-- IF plugins.active --> btn-warning<!-- ELSE --> btn-success<!-- ENDIF plugins.active -->"><i class="fa fa-power-off"></i> <!-- IF plugins.active -->Deactivate<!-- ELSE -->Activate<!-- ENDIF plugins.active --></button>
|
||||
|
||||
|
||||
|
||||
<button data-action="toggleInstall" class="btn btn-danger"><i class="fa fa-trash-o"></i> Uninstall</button>
|
||||
</div>
|
||||
|
||||
@@ -19,6 +21,9 @@
|
||||
<p>{plugins.description}</p>
|
||||
<!-- ENDIF plugins.description -->
|
||||
<!-- IF plugins.outdated --><i class="fa fa-exclamation-triangle text-danger"></i> <!-- ENDIF plugins.outdated --><small>Installed <strong>{plugins.version}</strong> | Latest <strong>{plugins.latest}</strong></small>
|
||||
<!-- IF plugins.outdated -->
|
||||
<button data-action="upgrade" class="btn btn-success btn-xs">Upgrade</button>
|
||||
<!-- ENDIF plugins.outdated -->
|
||||
<!-- IF plugins.url -->
|
||||
<p>For more information: <a href="{plugins.url}">{plugins.url}</a></p>
|
||||
<!-- ENDIF plugins.url -->
|
||||
|
||||
Reference in New Issue
Block a user