已点赞的 Webhook?

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 个赞

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 个赞

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 个赞

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 个赞

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 个赞

你好,

抱歉再次打扰。你在这方面有什么进展吗?我正打算做类似的事情。

1 个赞

你好,欢迎!很高兴你来到这里。

不,据我所知,post_liked 这个 webhook 从未被添加过。说实话,我认为 post_liked 是一条价值相对较低的信息,不值得费心去触发 webhook。

我之前合作的那个社区采用了一种方法:定期通过数据探索插件导出活动数据,然后导入到他们的外部追踪仪表板中。这种方法效果相当不错,并且允许在导入前进行一些整理(例如移除私密分类中的活动)……只是不是实时的。:slight_smile:

不过,我有一段时间没有亲自尝试这个功能了。看起来有一个“通知事件”选项,或许可以奏效。除非用户静音了该话题,否则当他们发布的帖子被点赞时,他们会收到通知。

我建议你启动一个 Discourse 实例并亲自试一试!:slight_smile: 请告诉我们结果如何。

2 个赞

你好,Tobias,

感谢你的快速回复!

通知事件可以工作,但很遗憾,在应用了分类过滤器后就不行了。在我们只关心特定分类中的点赞的情况下,这将产生大量噪音。

我是 Discourse 的新手,但已经做了一些研究,没有找到类似的功能。我还需要进一步探索,看看是否有更好的实现方式。

抱歉,这个话题有点旧了,但这也是我想实现的功能。在楼主(OP)的帖子中增加类似 post_liked 的功能会非常有帮助。有什么好主意吗?