|
|
@@ -67,7 +67,7 @@ exports.swigFilters = function(app, swig) {
|
|
|
|
|
|
// define a function for uploaded picture
|
|
|
const getUploadedPictureSrc = function(user) {
|
|
|
- if (user.image !== undefined) {
|
|
|
+ if (user.image) {
|
|
|
return user.image;
|
|
|
}
|
|
|
else {
|
|
|
@@ -147,7 +147,7 @@ exports.swigFilters = function(app, swig) {
|
|
|
|
|
|
swig.setFilter('picture', function(user) {
|
|
|
if (!user) {
|
|
|
- return '';
|
|
|
+ return '/images/userpicture.png';
|
|
|
}
|
|
|
|
|
|
if (user.isGravatarEnabled === true) {
|