Could somebody show me an example of making a post with the write API?
I tried integrating Reddit and Nodebb (Horrible idea, I know.) and I still don't know how to make a post with a user token.

PatheticMustan
@PatheticMustan
I don't know what to say.
Best posts made by PatheticMustan
-
Write API
-
RE: i also need to do the same require login on total website
Under "Manage>Privileges", you can select wether you want to edit the perms of a category, or the perms of "global".
You have to go to every category and edit the "guests" so all the boxes are unchecked. -
RE: Iām a student and I want to create a NodeBB
@gotwf said in Iām a student and I want to create a NodeBB:
Although I cannot imaging running NodeBB on one of their $5/mo. rigs Maybe for ten users?
Currently with 20+ users it seems to work fine, but there are some slowdowns I've been seeing recently.
Latest posts made by PatheticMustan
-
RE: Running backup while NodeBB is running
Test it on a separate instance of NodeBB?
-
RE: Iām a student and I want to create a NodeBB
@gotwf said in Iām a student and I want to create a NodeBB:
Although I cannot imaging running NodeBB on one of their $5/mo. rigs Maybe for ten users?
Currently with 20+ users it seems to work fine, but there are some slowdowns I've been seeing recently.
-
RE: Still cannot see cards.
Going to https://mynotsosecretforum.com/admin/plugins/nodebb-plugin-recent-cards/tests/external only results in a blank screen, with 3 errors:
Refused to apply style from 'https://mynotsosecretforum.com/plugins/nodebb-plugin-recent-cards/render/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
-
Still cannot see cards.
Re: Recent cards installed but can not showing
Followed all the steps, but Recent Cards is still showing up empty.
There are no warnings/errors in console, and the topics are still showing empty. Even without the container, nothing is showing. In the container's body, there's no code except for<div class="panel-body"> </div>
which is pretty empty indeed.
I've tried uninstalling and re-installing the plugin, to see if that might help.
Removing and putting back the widget, making sure that my groups can see it, restarting/rebuilding...Does somebody else running 1.12 have the recent cards working?
Am I using the wrong plugin? (I'm using Psychobunnies' Plugin) -
How do you hide invisible users?
So on my forum, if you check which users are online, you can see people who have set their status to "invisible". When I try this on community.nodebb.org, all the invisible people disappear!
Does this witchery come with magical CSS? And if so, what are you doing? -
RE: "csrf-invalid"
@PitaJ said in "csrf-invalid":
@PatheticMustan please try removing the config.json socket.io option. It's dangerous. More information here: https://community.nodebb.org/topic/13388/faq-websockets-not-working-due-to-misconfigured-origins
Thanks for the tip! I have since removed it, and it still works
-
RE: "csrf-invalid"
Don't know which one fixed it, but after these suggestions, the forum works again! Thank you so much!
-
"csrf-invalid"
I can't seem to figure out why NodeBB keeps returning "csrf-invalid".
The forum runs perfectly fine, but when navigating to any page, returns an alert
It looks like your login session is no longer active, or no longer matches with the server. Please refresh this page.
Logging in only gives
We were unable to log you in, likely due to an expired session. Please try again
And ./nodebb log only provides not very descriptive errors likeerror: /login invalid csrf token
Nodebb: 1.12.1 (041cde4dbce64c8f748c81800fac8f6738bf0005)
NodeBB{ "url": "https://cpos.ml", "secret": "secretse-cret-secr-etse-cretsecretse", "bind_address": "127.0.0.1", "database": "mongo", "port": "4567", "mongo": { "host": "127.0.0.1", "port": "27017", "username": "nodebb", "password": "**********", "database": "nodebb", "uri": "" } }
Nginx
server { listen 80; server_name cpos.ml; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded_Proto https; proxy_set_header X-Forwarded-Port 443; proxy_set_header Host $host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:4567; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } listen 443 ssl; ssl_certificate /etc/letsencrypt/live/cpos.ml/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/cpos.ml/privkey.pem; include /etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; } server { if ($host = cpos.ml) { return 301 https://$host$request_uri; } listen 80; server_name cpos.ml; return 404; }
Could anybody please maybe point out something that may be causing the issue?
-
What plugins does this NodeBB use?
I'm just wondering what plugins are being used, this forum looks awesome