Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reaction state to posts #34

Merged
merged 1 commit into from
Jan 16, 2017
Merged

Add reaction state to posts #34

merged 1 commit into from
Jan 16, 2017

Conversation

xla
Copy link
Member

@xla xla commented Jan 16, 2017

For client to reason if the user has reacted to a post with one of the available reactions we extend the Post representation with the has_reacted field which has a boolean for every of the possible
reactions.

{
  ...
  "has_reacted": {
    "live": false,
    "love": false,
    "haha": true,
    ...
  },
  ...
}

For client to reason if the user has reacted to a post with one of the
available reactions we extend the Post representation with the
`has_reacted` field which has a boolean for every of the possible
reactions.

```
{
  ...
  "has_reacted": {
    "live": false,
    "love": false,
    "haha": true,
    ...
  },
  ...
}
```
@xla xla self-assigned this Jan 16, 2017
@xla xla merged commit 5253f68 into master Jan 16, 2017
@xla xla deleted the has-reacted branch January 16, 2017 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant