Post_liked 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 웹훅은 추가된 적이 없었습니다. 솔직히 말씀드리면, post_liked는 웹훅을 발화할 만큼 가치가 낮은 정보라고 생각합니다.

그 글을 작성할 당시 제가 함께 일했던 커뮤니티는 데이터 탐색기 플러그인을 통해 주기적으로 활동을 내보내고, 이를 외부 추적 대시보드에 가져오는 절차를 갖추고 있습니다. 잘 작동하며, 가져오기 전에 일부 정리(예: 비공개 카테고리의 활동 제거)가 가능합니다. 다만 즉시 처리되지는 않죠. :slight_smile:

그럼에도 불구하고, 저는 개인적으로 이 기능을 꽤 오래 사용하지 않았습니다. “알림 이벤트” 옵션이 있는 것 같으니, 이것이 작동할 수도 있겠습니다. 사용자가 주제를 음소거하지 않은 경우, 게시글이 좋아지기를 누르면 사용자에게 알림이 전송됩니다.

Discourse 인스턴스를 설정해서 직접 테스트해 보시는 것을 추천합니다! :slight_smile: 결과를 알려주세요.

2개의 좋아요

토비안님, 안녕하세요.

빠른 답변 감사합니다!

알림 이벤트는 작동하지만, 아쉽게도 카테고리 필터가 적용되면 작동하지 않습니다. 특정 카테고리에서 좋아요만 관심 있게 보는 시나리오라면, 이는 매우 큰 노이즈가 될 것입니다.

저는 디스코urses에 처음이지만, 조금 알아본 결과 비슷한 것을 찾지 못했습니다. 더 나은 방법이 있는지 더 깊이 살펴봐야 할 것 같습니다.

죄송합니다. 주제가 좀 오래됐긴 하지만, 제가 구현하고 싶었던 내용이기도 합니다. OP의 게시물에 post_liked 같은 기능이 있으면 정말 도움이 될 것 같아요. 혹시 아이디어가 있으신가요?