@pjh said in Commas in post titles cause notification text to get truncated:
I can't see anything obvious in source..
Or maybe...
NodeBB/src/user/notifications.js: bodyShort: '[[notifications:user_posted_topic, ' + postData.user.username + ', ' + title + ']]',
I think commas in title there would render anything after the first, something expected to populate a %3 and a %4...
I can't find anything similar to compare it with, that works, to see how it's dealt with. Nearest is..
pjh@hpdesktop:~/src$ grep upvoted_your_post NodeBB/src/socket.io/posts/votes.js -B5 -A5
},
], callback);
};
SocketPosts.upvote = function (socket, data, callback) {
helpers.postCommand(socket, 'upvote', 'voted', 'notifications:upvoted_your_post_in', data, callback);
};
SocketPosts.downvote = function (socket, data, callback) {
helpers.postCommand(socket, 'downvote', 'voted', '', data, callback);
};