nodebb-plugin-exodo-tweaks
Advanced tools
Comparing version 0.0.3 to 0.1.0
@@ -10,2 +10,3 @@ (function (module) { | ||
user = module.parent.require('./user'), | ||
plugin = {}; | ||
@@ -28,8 +29,8 @@ | ||
profileInfo.profile.push({ joindate: moment(data.joindate).format('MMM YYYY') }); | ||
if (data.location) | ||
profileInfo.profile.push({ location: data.location }); | ||
var joindateISO = Date.prototype.toISOString ? new Date(parseInt(data.joindate, 10)).toISOString() : data.joindate; | ||
profileInfo.profile.push({ joindate: moment(joindateISO).format('MMM YYYY') }); | ||
callback(err, profileInfo); | ||
}); | ||
}); | ||
}; | ||
@@ -80,3 +81,3 @@ | ||
* y setea el booleano isHot en la respuesta de la API | ||
function isHot(topic, callback) { | ||
@@ -90,3 +91,3 @@ topic.isHot = (topic.postcount >= 15 || topic.viewcount >= 150 ? true : false); | ||
* y setea el pagesCount con el número de páginas del hilo | ||
function setPagesCount(topic, uid) { | ||
@@ -102,10 +103,10 @@ user.getSettings(uid, function(err, settings) { | ||
*/ | ||
/** | ||
* Comprueba el número de posts por página del usuario logeado | ||
* y setea el pagesCount con el número de páginas del hilo | ||
function setPagesCount(topic, uid) { | ||
user.getUserData(uid, function(err, userData) { | ||
}); | ||
@@ -116,2 +117,2 @@ }; | ||
}(module)); | ||
}(module)); |
{ | ||
"name": "nodebb-plugin-exodo-tweaks", | ||
"version": "0.0.3", | ||
"version": "0.1.0", | ||
"description": "exo.do tweaks", | ||
@@ -17,3 +17,3 @@ "main": "library.js", | ||
"author": { | ||
"name": "Korrosivo" | ||
"name": "Korrosivo and exomarty" | ||
}, | ||
@@ -29,3 +29,3 @@ "license": "BSD-2-Clause", | ||
"nbbpm": { | ||
"compatibility": "^0.9.0" | ||
"compatibility": "^1.0.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "scripts": { |
@@ -1,1 +0,1 @@ | ||
ON DEVELOPMENT | ||
Adds user joindate to posts on theme-exodus |
Sorry, the diff of this file is not supported yet
41798
10