mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-30 08:17:32 +02:00
closes #675
This commit is contained in:
@@ -213,7 +213,10 @@ var db = require('./database'),
|
||||
post.user_postcount = userData.postcount || 0;
|
||||
post.user_banned = parseInt(userData.banned, 10) === 1;
|
||||
post.picture = userData.picture || gravatar.url('', {}, https = nconf.get('https'));
|
||||
post.signature = signature;
|
||||
|
||||
if(meta.config.disableSignatures === undefined || parseInt(meta.config.disableSignatures, 10) === 0) {
|
||||
post.signature = signature;
|
||||
}
|
||||
|
||||
for (var info in customUserInfo) {
|
||||
if (customUserInfo.hasOwnProperty(info)) {
|
||||
|
||||
@@ -548,6 +548,8 @@ var fs = require('fs'),
|
||||
data.yourid = callerUID;
|
||||
data.theirid = uid;
|
||||
|
||||
data.disableSignatures = meta.config.disableSignatures !== undefined && parseInt(meta.config.disableSignatures, 10) === 1;
|
||||
|
||||
user.getFollowingCount(uid, function (followingCount) {
|
||||
user.getFollowerCount(uid, function (followerCount) {
|
||||
data.followingCount = followingCount;
|
||||
|
||||
Reference in New Issue
Block a user