וובך לאירועי התראת כולל סך הכל?

סיכום מבוסס בינה מלאכותית

The discussion is about creating a webhook for notification events that includes a total. Shauny is currently using the API to get the number of notifications, but this method won’t scale well. Ideally, they’d like to use a webhook to send notification data to their sister website, which would store the number and update it when notifications are cleared. However, there doesn’t seem to be a way to create a webhook event for clearing notifications. As an alternative, Shauny suggests adding the total unread notifications to the current notification webhook. tobiaseigen questions the setup, but Shauny explains that the goal is to create a seamless experience between the two linked sites, allowing users to view and dismiss notifications on either platform.

I am currently using the API to get the number of notifications on my forum to display on my sister website, but even caching this for 60 seconds requires 1 API request per user per minute, which will not scale well.

Ideally I’d like to use a webhook, so every time the user gets a notification it sends the data to my sister website, which stores the number. Then when the user clears their notifications, it also gets cleared.

But there does not seem to be a way to create a webhook event for clearing notifications? Is there any way to add this?

Or, even simpler, add to the current notification webhook a number of the total unread notifications, so every time someone gets a new one I can update the database to include that.

This would really help keep my websites in sync and prevent an upcoming API limit nightmare. Please help!

(Also, if there is a way to get Chat notifications via webhook or API, I really would like to know!)

זה נשמע כמו הגדרה מאוד ייחודית! תוכל לספר לנו עוד על ההגדרות שלך ולמה אתה מחפש לאפשר לחבריך לראות ולסנן את ההודעות של Discourse מהאתר אחר? נראה לי שזה יהיה הכי הגיוני שהם יתחברו ל-Discourse כדי לגשת להודעות שלהם ולהשתתף בדיונים.

ובכן, האתר השני קשור באופן הדוק, הם אמורים להיות חלקים without הפרעה.

אני רוצה להיות מסוגל להציג הודעות באתר השני, ואם אעשה את זה, הצגת ההודעות שם אמורה לסגור את הנקודה “חדש” בדיוק כפי שפורום עושה זאת.

זה כל כך פשוט, אני רוצה שהפלטפורמות שתיהן יהיו חלקות.