Title: Feature Request: Direct User-Specific Reaction Visibility on Comments · Issue #161 · GetStream/stream-java · GitHub
Open Graph Title: Feature Request: Direct User-Specific Reaction Visibility on Comments · Issue #161 · GetStream/stream-java
X Title: Feature Request: Direct User-Specific Reaction Visibility on Comments · Issue #161 · GetStream/stream-java
Description: Currently, when fetching a comment’s reactions (e.g., upvotes) from a given activity, there isn’t a straightforward way to determine if the currently authenticated user has already reacted (e.g., upvoted) without iterating through all re...
Open Graph Description: Currently, when fetching a comment’s reactions (e.g., upvotes) from a given activity, there isn’t a straightforward way to determine if the currently authenticated user has already reacted (e.g., u...
X Description: Currently, when fetching a comment’s reactions (e.g., upvotes) from a given activity, there isn’t a straightforward way to determine if the currently authenticated user has already reacted (e.g., u...
Opengraph URL: https://github.com/GetStream/stream-java/issues/161
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":" Feature Request: Direct User-Specific Reaction Visibility on Comments","articleBody":"Currently, when fetching a comment’s reactions (e.g., upvotes) from a given activity, there isn’t a straightforward way to determine if the currently authenticated user has already reacted (e.g., upvoted) without iterating through all returned reactions.\r\n\r\n**Use Case:**\r\n\r\n- Imagine a scenario where I have an activity with a series of comment reactions.\r\n\r\n- On one of these comments, I’ve added an upvote reaction.\r\n\r\n- When I fetch the comment along with its child reactions (like upvotes), I receive a list of all upvote reactions. However, to find out if I (as the currently logged-in user) have upvoted this particular comment, I need to scan through all these reactions, which can be in the thousands.\r\n\r\n- This approach is inefficient and can lead to performance issues.\r\n\r\n**Problem**: There’s no direct query parameter or built-in functionality to easily check whether the current user has already reacted to a comment. As a result, developers must rely on potentially expensive operations (e.g., iterating over large reaction sets) to determine user-specific reaction state.\r\n\r\n**Requested Feature:**\r\n\r\n- Provide a method or parameter that, when fetching comment reactions, can directly inform the client if the current user has already reacted.\r\n\r\n- This could be similar to existing enrichment flags used for activities (e.g., withOwnReactions(userId)) but applied to reactions.\r\n\r\n- Alternatively, expose an endpoint or filter that combines LookupKind.USER and LookupKind.ACTIVITY to quickly fetch user-specific reactions for a given activity or comment without separate queries and manual filtering.","author":{"url":"https://github.com/jiboOne","@type":"Person","name":"jiboOne"},"datePublished":"2024-12-11T11:43:12Z","url":"https://github.com/GetStream/stream-java/issues/161"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a442a30c-182a-4cd1-fe80-4e7336009940 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD80:1ED592:2594335:319C484:6B036D10 |
| html-safe-nonce | badf66389cfded4d4e39d7b42d6f776fadce7fb657ff96792f8726500e0991da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDgwOjFFRDU5MjoyNTk0MzM1OjMxOUM0ODQ6NkIwMzZEMTAiLCJ2aXNpdG9yX2lkIjoiMTM1OTI5MDI4MjYzMzU1NTIxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a6170dfa48e6050f1f77d6fac61552b920ccb57531d28d9a17fce85cda07d35a |
| hovercard-subject-tag | issue:2732731689 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GetStream/stream-java/161/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f8178dc6208c9a431683248988b48f905f1a3a169e78c0b68e9f40bdd505f12/GetStream/stream-java/issues/161 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f8178dc6208c9a431683248988b48f905f1a3a169e78c0b68e9f40bdd505f12/GetStream/stream-java/issues/161 |
| og:image:alt | Currently, when fetching a comment’s reactions (e.g., upvotes) from a given activity, there isn’t a straightforward way to determine if the currently authenticated user has already reacted (e.g., u... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jiboOne |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/GetStream/stream-java git https://github.com/GetStream/stream-java.git |
| octolytics-dimension-user_id | 8597527 |
| octolytics-dimension-user_login | GetStream |
| octolytics-dimension-repository_id | 32178984 |
| octolytics-dimension-repository_nwo | GetStream/stream-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32178984 |
| octolytics-dimension-repository_network_root_nwo | GetStream/stream-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width