Webhook Post_liked?

Hi,

We are adding Discourse as a forum to a system which tracks user actions and award points. Our system tracks content creation and interaction.

We successfully used webhooks to track post & topic creation but there doesn’t seem to be anything for post_liked and topic_liked.

Is this planned down the road? Has it been attempted but turned down out of stability/performance issues?

How easy would it be to customize webhooks?

Thanks!

4 Mi Piace

I am kind of open to this, in other cases like flagging which is also a post action this makes total sense, cause alerting an external system when a post is flagged is super useful.

I have some concerns around load this can generate though cause there can be tons of likes.

6 Mi Piace

I’m thinking that since webhooks on post/topics creations are passing a lot of data very often without that much impact on performance, there shouldn’t be that much issues with likes. They can happen as often as new posts and the payload is going to be smaller (post id, user id, like/unlike action, total likes).

But I could be totally wrong about it. I’ve not explored Discourse’s source much.

1 Mi Piace

I’m with Kara and am just looking into this. We track engagement stats in another system, and currently import forum activity on a monthly basis. Using a webhook for this would obviously speed things along for us.

Has a post_liked webhook ever been made available?

2 Mi Piace

It’s been a while already and we are a big team so I don’t remember the exact solution. I believe that a custom webhook was developed by a member of our team.

1 Mi Piace

Ciao,

Scusa per il sollecito. Hai avuto fortuna con questo? Sto valutando di fare qualcosa di simile.

1 Mi Piace

Ciao e benvenuto! Siamo felici di averti qui.

No, per quanto ne sappia, il webhook post_liked non è mai stato aggiunto. Onestamente, penso che post_liked sia un’informazione di scarso valore per giustificare la complessità di attivare un webhook.

La comunità con cui lavoravo quando ho scritto quel post ha una procedura per esportare periodicamente l’attività tramite il plugin Data Explorer e poi importarla nella loro dashboard di tracciamento esterna. Funziona molto bene e permette un po’ di manutenzione prima dell’importazione (ad esempio, per rimuovere l’attività nelle categorie private)… semplicemente non è immediata. :slight_smile:

Detto questo, non ci ho sperimentato personalmente da un po’. Sembra che ci sia un’opzione “Evento di notifica” che potrebbe funzionare. Gli utenti ricevono una notifica quando i loro post vengono apprezzati, a meno che non abbiano silenziato l’argomento.

Ti suggerisco di avviare un’istanza di Discourse e di provarla! :slight_smile: Fammi sapere come va.

2 Mi Piace

Ciao Tobias,

Grazie per la risposta rapida!

L’evento di notifica funziona, ma purtroppo non quando viene applicato un filtro per categoria. In uno scenario in cui ci interessassero solo i like in una determinata categoria, questo genererebbe un rumore eccessivo.

Sono nuovo su Discourse, ma ho fatto qualche ricerca e non sono riuscito a trovare nulla di simile. Dovrò approfondire per vedere se esiste un modo migliore di gestire questa situazione.

Scusa, l’argomento è un po’ vecchio, ma è anche quello che volevo implementare. Qualcosa come post_liked sul post dell’OP sarebbe molto utile. Avete qualche idea?