{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-comments/issues/104","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-comments/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-comments/issues/104/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-comments/issues/104/events","html_url":"https://github.com/silverstripe/silverstripe-comments/pull/104","id":66777953,"number":104,"title":"API Move configuration of comments to the config API and enable per-instance configuration","user":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/silverstripe/silverstripe-comments/labels/api","name":"api","color":"444444"},{"url":"https://api.github.com/repos/silverstripe/silverstripe-comments/labels/feature","name":"feature","color":"02d7e1"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/silverstripe/silverstripe-comments/milestones/2","html_url":"https://github.com/silverstripe/silverstripe-comments/milestones/2.0","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-comments/milestones/2/labels","id":1055565,"number":2,"title":"2.0","description":"","creator":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2015-04-07T05:20:54Z","updated_at":"2015-04-13T03:23:40Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-04-07T05:20:13Z","updated_at":"2015-04-13T03:25:27Z","closed_at":"2015-04-13T03:23:40Z","pull_request":{"url":"https://api.github.com/repos/silverstripe/silverstripe-comments/pulls/104","html_url":"https://github.com/silverstripe/silverstripe-comments/pull/104","diff_url":"https://github.com/silverstripe/silverstripe-comments/pull/104.diff","patch_url":"https://github.com/silverstripe/silverstripe-comments/pull/104.patch"},"body":"If this is merged it'd probably be a good idea to branch the current master into 1.2 first.\r\n\r\nRather than using static properties in the `Commenting` class we just use the config API and assume that any class with the `CommentsExtension` has commenting configured.\r\n\r\n* Commenting is no longer enabled for SiteTree automatically by default.\r\n* Update use of config within the module to get the config either from the specific object being commented on, or using the default config from the extension itself.\r\n* Lots of code cleanup, phpdoc, indentation\r\n* A new `enabled` option has been specified in case any class with the extension needs to have the functionality disabled.\r\n* Also included is a new `CommentList` relation list to wrap a comment list bound to a specific parent.\r\n* `EscapedComment` has been configured to work more nicely with the casting mechanism.\r\n* Deprecation has been updated to 2.0 and some methods updated with this notice. `Commenting` class has been completely deprecated.\r\n* Spam comments are now no longer displayed at all in the frontend; It's necessary for admin users to manage these via the modeladmin. This is because sifting through non-spam comments on the frontend of a site with heavy spam volume is near impossible. Users can still customise this list for display via the `updateComments` extension point on the parent object.\r\n* Comments list has been broken into `Comments` and `PagedComments` methods, so frontend developers can customise how paging is done. `AllComments` can also be called to retrieve spam / unmoderated comments for internal use.\r\n* Instead of displaying all spam comments on the frontend, a new per-page comment moderation system is available, so that users, admins, or editors with limited CMS permissons are still able to edit a specific page and manage comments just for that page.\r\n\r\n\r\nThis work is the groundwork for the following features yet to come:\r\n\r\n* Improved comment moderation system (UX review implementation)\r\n* Nested comments\r\n* Ability to control comment options per-page via CMS settings"},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-comments/issues/comments/92184299","html_url":"https://github.com/silverstripe/silverstripe-comments/pull/104#issuecomment-92184299","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-comments/issues/104","id":92184299,"user":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T03:25:27Z","updated_at":"2015-04-13T03:25:27Z","body":"Thanks @sminnee  :D"}}