mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
82a3133ace
refs https://github.com/TryGhost/Team/issues/1723 - Added count.replies to comments - Added replies endpoint - Limited returned replies to 3. - Replaced likes_count with count.likes in comments - Instead of fetching all the likes of a comment to determine the total count, we'll now use count.likes - Instead of fetching all the likes of a comment to determine whether a member liked a comment, we'll now use count.liked (which returns the amount of likes of the current member, being 0 or 1). This is mapped to `liked` to make it more natural to work with. The `members.test.snap` file changed because we no longer include `liked: false` if we didn't fetch the liked relation. And in the comments events of the activity feed the liked property is therefore removed. These changes requires an update to the `bookshelf-include-count` plugin: - Updated to also work for nested relations - This moves the count queries from the `bookshelf-include-count` plugin to the `countRelations` method of each model. - Updated to keep the counts after saving a model (crud.edit didn't return the counts before)
35 lines
792 B
JSON
35 lines
792 B
JSON
{
|
|
"name": "@tryghost/job-manager",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"author": "Ghost Foundation",
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev": "echo \"Implement me!\"",
|
|
"test": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'",
|
|
"lint": "eslint . --ext .js --cache"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"lib"
|
|
],
|
|
"devDependencies": {
|
|
"@sinonjs/fake-timers": "9.1.2",
|
|
"c8": "7.12.0",
|
|
"date-fns": "2.29.1",
|
|
"delay": "5.0.0",
|
|
"mocha": "10.0.0",
|
|
"should": "13.2.3",
|
|
"sinon": "14.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@breejs/later": "4.1.0",
|
|
"@tryghost/logging": "2.2.4",
|
|
"bree": "6.5.0",
|
|
"cron-validate": "1.4.3",
|
|
"fastq": "1.13.0",
|
|
"p-wait-for": "3.2.0"
|
|
}
|
|
}
|