Cannot change user slug
-
I have to rename a user but after doing that, their posts under the old name still shows up and the username still shows the old user.
Is there a way to fix this? -
I have to rename a user but after doing that, their posts under the old name still shows up and the username still shows the old user.
Is there a way to fix this?I also changed the name of the forums and now emails are showing up with a broken logo.
I updated the logo in General settings so what is the email using that still points to the previous domain which is now down? I've searched everything but the database and cannot find anything that points to the old domain. -
I have to rename a user but after doing that, their posts under the old name still shows up and the username still shows the old user.
Is there a way to fix this?Does no one peruse these forums anymore?
-
I have to rename a user but after doing that, their posts under the old name still shows up and the username still shows the old user.
Is there a way to fix this?If you changed the value of url in config.json then you have restart nodebb, so that next time the emailer sends email it uses the new url.
-
I have to rename a user but after doing that, their posts under the old name still shows up and the username still shows the old user.
Is there a way to fix this?Yes, I changed the name/url in the config file along with on the back end of course.
I also deleted the old logo and uploaded the new one but the logo in emails remains broken with the name of the previous site still in the url.I searched the DB and tries to hard code the new url but that didn't work for emails at least.
I searched all of the files to be safe and find nothing for the old url so I don't know where this is coming from.Not sure what else to look at which is why I posted.
-
I have to rename a user but after doing that, their posts under the old name still shows up and the username still shows the old user.
Is there a way to fix this?This is where the email template is rendered, you can add a console.log(params) there to see the values used for the logo.
-
S support@community.nodebb.org shared this topic
-
Yes but I don't want to edit files directly as there are so many nodebb updates that will overwrite changes.
In addition, I never had to edit this file to get the logo working in emails so I'm very hesitant about touching that. -
You are just editing it to debug the issue, once you see the correct url there you can revert the change back.
-
Ok, I can try that.
Making this change worked;
Emailer._defaultPayload = {
url: nconf.get('url'),
site_title: meta.config.title || 'NodeBB',
logo: {
src: "https://my.nodebb.com/assets/uploads/system/site-logo.png",
height: 50,
width: 247,
},
};I also tried this with no luck.
nodebb> db.objects.find({ _key: "meta/config" }).pretty()
...nodebb> db.objects.find({ _key: "meta/config" }, { logo: 1, _id: 0 }).pretty()
...nodebb>
This confirmed that the meta/config document currently does not exist in the database.
db.objects.insertOne({
_key: "meta/config",
logo: "https://my.nodebb.com/assets/uploads/system/site-logo.png"
})Rebuilt and restarted NodeBB
./nodebb build
./nodebb restartNo change.
-
The key name is just
config
notmeta/config