Regarding notifications API
-
Hi Team,
I am trying to use nodebb's "Notification API(/api/notifications)" in my angular project. I want to specify the notification exactly as it is displayed on nodebb forum,
for example: user1 mentioned you in test post
please refer to attached screenshot.From where i can fetch the exact text ?
Thanks!
-
What have you tried?
-
@arc002 that's in the file, in the built assets at least, you can see it here: https://community.nodebb.org/assets/language/en-US/notifications.json (you'll need to open that in a new tab as otherwise ajaxify will try to dynamically load it)
It appears the keys related to mentions are provided by the mentions plugin. You can pull them from there, but I'd recommend you use the built files in
<nodebb dir>/build/public/language
. -
@pitaj said in Regarding notifications API:
@arc002 that's in the file, in the built assets at least, you can see it here: https://community.nodebb.org/assets/language/en-US/notifications.json (you'll need to open that in a new tab as otherwise ajaxify will try to dynamically load it)
Well, there's a bug....
-
Hi @PitaJ i have one more ask, i am using notifications API to show notifications bell icon widget but i am unable to mark notifications "Read or Unread" from my angular component, as it changes the value in the API.
Please refer to attached screenshot.
How can i update the notification API from custom angular component ?
Thanks