Simon Backx
516b527c65
Fixed comment notification emails for replying on your own comment
...
fixes https://github.com/TryGhost/Team/issues/1697
- Don't send a notification email when you reply on your own comment
- Added some tests for comment emails (requires some async waiting, maybe we can improve this in the future)
2022-07-20 15:50:08 +02:00
Hannah Wolfe
14020f46d2
Handle comment replies in the browse API
...
refs https://github.com/TryGhost/Team/issues/1664
- replies are a sub-record inside of a comment
2022-07-12 10:24:02 +02:00
Hannah Wolfe
cf529111f6
Updated comment API to only return top-level comments
...
refs https://github.com/TryGhost/Team/issues/1664
- we will have a separate concept of returning replies
2022-07-12 10:24:02 +02:00
Simon Backx
0d4b3a2baa
Readded uuid to comment members relation output
...
refs https://github.com/TryGhost/Team/issues/1664
2022-07-12 10:24:02 +02:00
Simon Backx
876c1024c9
Added liked property to comments
...
refs https://github.com/TryGhost/Team/issues/1664
2022-07-12 10:24:02 +02:00
Simon Backx
54e7a6cec3
Added default comment relations
...
refs https://github.com/TryGhost/Team/issues/1664
2022-07-12 10:24:02 +02:00
Hannah Wolfe
e5e05c292c
Added basic test fixture structure for comments
...
refs https://github.com/TryGhost/Team/issues/1664
- includes a comment and a reply for now
2022-07-12 10:24:02 +02:00
Hannah Wolfe
caef9d74e0
Added mapper for comments API
...
refs https://github.com/TryGhost/Team/issues/1664
- ensure that the comment API returns a minimal and clean set of data and doesn't expose member details
2022-07-12 10:24:02 +02:00
Simon Backx
e96ff3fa81
Added comments API like and unlike actions
...
refs https://github.com/TryGhost/Team/issues/1664
- Added comment-like model
- Added like endpoint
- Added unlike endpoint
- Added basic tests for liking and unliking comments
- Added permissions for liking and unliking
- Added migration for permissions
2022-07-12 10:24:02 +02:00
Kevin Ansfield
25c0b75426
Added comments API tests
...
refs https://github.com/TryGhost/Team/issues/1664
Note: we put it in the members-comments folder because some issue with test ordering
- refs https://ghost.slack.com/archives/C02G9E68C/p1657538586658649?thread_ts=1657522575.865029&cid=C02G9E68C
- There is something wrong with the url service reset when running multiple tests
- Currently we are doing a soft reset, this needs investigating
- Changing the order so that the comments API tests are executed after the content API tests, fixes the issue too.
Co-authored-by: Simon Backx <simon@ghost.org>
2022-07-12 10:24:02 +02:00