upgrading from 2.8 to 3.3.9, emojis are missing
-
@sharonyue can you share the exact markdown of that post? It doesn't appear to have been parsed as an emoji.
Maybe try changing the priority of the emoji plugin. It should be after markdown.
Edit: at first the image didn't load but now it is, not sure what the problem is. Seems like the browser thinks the image is cross-origin when it isn't.
-
@PitaJ This is my post.
nice!说的太好了!!! :146: :146: :146: :146: :146: :146: > 要求达到建筑物位置的湍流风场特性与风洞试验一致,才能得到精度较高的复现结果 这方面有sci做对比么,竟然有这么大的差异。那要是差异很大,确实需要好好研究下进口了。 ![:baobao:](https://cfd-china.com/assets/plugins/nodebb-plugin-emoji/emoji/customizations/2668306c-43ff-42b9-a42a-d9080357c5b6-c5c446676f124dd61d1247e8656d6bb3.png?v=akh24mtahoq)
-
@sharonyue NodeBB doesn't support accessing from multiple URLs. Instead of serving it on both
example.com
andwww.example.com
, redirect one to the other. -
@sharonyue it will be in your reverse proxy config, such as nginx.
-
@sharonyue yes.
-
@sharonyue said in upgrading from 2.8 to 3.3.9, emojis are missing:
so that means my emoji's address start with "xxx.com", so in "www.xxx.com", my emojis wouldn't show up?
Um..This is not the case for nodebb-v2.
Is there an easy way to do it in nodebb-v3?
-
@sharonyue I can assure you that NodeBB has always only supported a single URL since the beginning. It may be that recently something else changed either in NodeBB or in browsers that made cross-origin images not show up.
But the solution is quite simple: just make
www.example.com
redirect toexample.com
in your reverse proxy config. Having a single canonical URL is better for more reasons beyond just working correctly with NodeBB.