What is the difference between user_id and current_user_id

Hi everyone!
I want to create a badge that is granted when someone shares at least 5 posts. To be sure I use the correct field, I would like to understand the difference between user_id and current_user_id in the table incoming_links in Data Explorer. If someone has an idea it would be really helpful, thank you!

1 Like

Hi Anais,

user_id refers to the user who shared the post and current_user_id refers to the user that checked the post via the shared link. If a visitor (outsider from your Discourse instance) uses this link, current_user_id will be NULL.

6 Likes

Hi Pedro!

Thank you so much for your explanation!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.