mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-02 07:43:11 +03:00
30c4f11e27
closes https://github.com/TryGhost/Team/issues/1684 **Migrations:** - Added report permissions (fixtures + migrations) - Dropped reason field in reports (no textarea in reports in V1) - Dropped nullable from comment_likes.member_id (can't be null) - Added SET NULL/CASCADE foreign keys for comments related tables(*) (*): fixes https://github.com/TryGhost/Team/issues/1687 refs https://ghost.slack.com/archives/C02G9E68C/p1658217288591369 This commit adds support for `SET NULL` foreign keys in schema and migration helpers + also fixes the foreign keys for the comment_reports, comment_likes and comments tables. - When a member is deleted, we **do** want to keep their reports (SET NULL) - When a member is deleted, we **do not** want to keep their likes (CASCADE) - When a member is deleted, we **do** want to keep the comments (SET NULL) **Changes:** - Added report API: `POST /members/api/comments/{id}}/report/` - Sends an email to the owner when a comment is reported - Saves a report to the database (not used for now, but might be useful later) |
||
---|---|---|
.. | ||
fixtures | ||
mocks | ||
admin-api-test-agent.js | ||
admin-utils.js | ||
api.js | ||
assertions.js | ||
configUtils.js | ||
content-api-test-agent.js | ||
db-utils.js | ||
e2e-framework-mock-manager.js | ||
e2e-framework.js | ||
e2e-utils.js | ||
fixture-utils.js | ||
ghost-api-test-agent.js | ||
index.js | ||
members-api-test-agent.js | ||
overrides.js | ||
redirects.js | ||
test-agent.js | ||
url-service-utils.js | ||
urlUtils.js |