If you are getting uid===-1 on the /api/config route it means your request was classified as a spider. https://github.com/NodeBB/NodeBB/blob/master/src/routes/authentication.js#L38
file tpl were recovered after restart nodebb server
xinshouke last edited by xinshouke
I changed some html code in folder \public\templates, these changes worked as I hope.But I restart nodebb, all changed code were recovered! Would you tell me how to rewrite tpl code please?
@梁益 You'll want to change the files in your theme. In the theme folder, they are typically in the
Themes themselves are installed in
node_modules/, although if you are making extensive changes, you are better off making your own theme.
xinshouke last edited by
Yes, It work as what you told. Thanks a lot!