{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/flarum/flarum-ext-suspend/pulls/4","id":56942658,"html_url":"https://github.com/flarum/flarum-ext-suspend/pull/4","diff_url":"https://github.com/flarum/flarum-ext-suspend/pull/4.diff","patch_url":"https://github.com/flarum/flarum-ext-suspend/pull/4.patch","issue_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/issues/4","number":4,"state":"open","locked":false,"title":"added validator","user":{"login":"Luceos","id":504687,"avatar_url":"https://avatars.githubusercontent.com/u/504687?v=3","gravatar_id":"","url":"https://api.github.com/users/Luceos","html_url":"https://github.com/Luceos","followers_url":"https://api.github.com/users/Luceos/followers","following_url":"https://api.github.com/users/Luceos/following{/other_user}","gists_url":"https://api.github.com/users/Luceos/gists{/gist_id}","starred_url":"https://api.github.com/users/Luceos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luceos/subscriptions","organizations_url":"https://api.github.com/users/Luceos/orgs","repos_url":"https://api.github.com/users/Luceos/repos","events_url":"https://api.github.com/users/Luceos/events{/privacy}","received_events_url":"https://api.github.com/users/Luceos/received_events","type":"User","site_admin":false},"body":"Although there is already a frontend min on the element, it might be wise to handle validation on php too, especially when the api is used more intensively.\r\n\r\nFixes flarum/core#372","created_at":"2016-01-22T21:15:23Z","updated_at":"2016-01-22T21:15:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/pulls/4/commits","review_comments_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/pulls/4/comments","review_comment_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/issues/4/comments","statuses_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/statuses/826355ed5b1de92856c9d05d26011aa32cbba5b6","head":{"label":"Luceos:validator","ref":"validator","sha":"826355ed5b1de92856c9d05d26011aa32cbba5b6","user":{"login":"Luceos","id":504687,"avatar_url":"https://avatars.githubusercontent.com/u/504687?v=3","gravatar_id":"","url":"https://api.github.com/users/Luceos","html_url":"https://github.com/Luceos","followers_url":"https://api.github.com/users/Luceos/followers","following_url":"https://api.github.com/users/Luceos/following{/other_user}","gists_url":"https://api.github.com/users/Luceos/gists{/gist_id}","starred_url":"https://api.github.com/users/Luceos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luceos/subscriptions","organizations_url":"https://api.github.com/users/Luceos/orgs","repos_url":"https://api.github.com/users/Luceos/repos","events_url":"https://api.github.com/users/Luceos/events{/privacy}","received_events_url":"https://api.github.com/users/Luceos/received_events","type":"User","site_admin":false},"repo":{"id":50206735,"name":"flarum-ext-suspend","full_name":"Luceos/flarum-ext-suspend","owner":{"login":"Luceos","id":504687,"avatar_url":"https://avatars.githubusercontent.com/u/504687?v=3","gravatar_id":"","url":"https://api.github.com/users/Luceos","html_url":"https://github.com/Luceos","followers_url":"https://api.github.com/users/Luceos/followers","following_url":"https://api.github.com/users/Luceos/following{/other_user}","gists_url":"https://api.github.com/users/Luceos/gists{/gist_id}","starred_url":"https://api.github.com/users/Luceos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luceos/subscriptions","organizations_url":"https://api.github.com/users/Luceos/orgs","repos_url":"https://api.github.com/users/Luceos/repos","events_url":"https://api.github.com/users/Luceos/events{/privacy}","received_events_url":"https://api.github.com/users/Luceos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Luceos/flarum-ext-suspend","description":"","fork":true,"url":"https://api.github.com/repos/Luceos/flarum-ext-suspend","forks_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/forks","keys_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/teams","hooks_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/hooks","issue_events_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/issues/events{/number}","events_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/events","assignees_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/assignees{/user}","branches_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/branches{/branch}","tags_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/tags","blobs_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/statuses/{sha}","languages_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/languages","stargazers_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/stargazers","contributors_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/contributors","subscribers_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/subscribers","subscription_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/subscription","commits_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/contents/{+path}","compare_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/merges","archive_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/downloads","issues_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/issues{/number}","pulls_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/pulls{/number}","milestones_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/milestones{/number}","notifications_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/labels{/name}","releases_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/releases{/id}","deployments_url":"https://api.github.com/repos/Luceos/flarum-ext-suspend/deployments","created_at":"2016-01-22T20:49:18Z","updated_at":"2016-01-22T20:49:20Z","pushed_at":"2016-01-22T21:14:17Z","git_url":"git://github.com/Luceos/flarum-ext-suspend.git","ssh_url":"git@github.com:Luceos/flarum-ext-suspend.git","clone_url":"https://github.com/Luceos/flarum-ext-suspend.git","svn_url":"https://github.com/Luceos/flarum-ext-suspend","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"flarum:master","ref":"master","sha":"4745791d6a0dc294529bf55d9d77618dbe172e55","user":{"login":"flarum","id":5549034,"avatar_url":"https://avatars.githubusercontent.com/u/5549034?v=3","gravatar_id":"","url":"https://api.github.com/users/flarum","html_url":"https://github.com/flarum","followers_url":"https://api.github.com/users/flarum/followers","following_url":"https://api.github.com/users/flarum/following{/other_user}","gists_url":"https://api.github.com/users/flarum/gists{/gist_id}","starred_url":"https://api.github.com/users/flarum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flarum/subscriptions","organizations_url":"https://api.github.com/users/flarum/orgs","repos_url":"https://api.github.com/users/flarum/repos","events_url":"https://api.github.com/users/flarum/events{/privacy}","received_events_url":"https://api.github.com/users/flarum/received_events","type":"Organization","site_admin":false},"repo":{"id":41483364,"name":"flarum-ext-suspend","full_name":"flarum/flarum-ext-suspend","owner":{"login":"flarum","id":5549034,"avatar_url":"https://avatars.githubusercontent.com/u/5549034?v=3","gravatar_id":"","url":"https://api.github.com/users/flarum","html_url":"https://github.com/flarum","followers_url":"https://api.github.com/users/flarum/followers","following_url":"https://api.github.com/users/flarum/following{/other_user}","gists_url":"https://api.github.com/users/flarum/gists{/gist_id}","starred_url":"https://api.github.com/users/flarum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flarum/subscriptions","organizations_url":"https://api.github.com/users/flarum/orgs","repos_url":"https://api.github.com/users/flarum/repos","events_url":"https://api.github.com/users/flarum/events{/privacy}","received_events_url":"https://api.github.com/users/flarum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flarum/flarum-ext-suspend","description":"","fork":false,"url":"https://api.github.com/repos/flarum/flarum-ext-suspend","forks_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/forks","keys_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/teams","hooks_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/hooks","issue_events_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/issues/events{/number}","events_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/events","assignees_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/assignees{/user}","branches_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/branches{/branch}","tags_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/tags","blobs_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/git/refs{/sha}","trees_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/statuses/{sha}","languages_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/languages","stargazers_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/stargazers","contributors_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/contributors","subscribers_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/subscribers","subscription_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/subscription","commits_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/commits{/sha}","git_commits_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/git/commits{/sha}","comments_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/comments{/number}","issue_comment_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/issues/comments{/number}","contents_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/contents/{+path}","compare_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/merges","archive_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/downloads","issues_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/issues{/number}","pulls_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/pulls{/number}","milestones_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/milestones{/number}","notifications_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/labels{/name}","releases_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/releases{/id}","deployments_url":"https://api.github.com/repos/flarum/flarum-ext-suspend/deployments","created_at":"2015-08-27T11:40:11Z","updated_at":"2016-01-19T06:23:27Z","pushed_at":"2016-01-19T06:47:36Z","git_url":"git://github.com/flarum/flarum-ext-suspend.git","ssh_url":"git@github.com:flarum/flarum-ext-suspend.git","clone_url":"https://github.com/flarum/flarum-ext-suspend.git","svn_url":"https://github.com/flarum/flarum-ext-suspend","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flarum/flarum-ext-suspend/pulls/4"},"html":{"href":"https://github.com/flarum/flarum-ext-suspend/pull/4"},"issue":{"href":"https://api.github.com/repos/flarum/flarum-ext-suspend/issues/4"},"comments":{"href":"https://api.github.com/repos/flarum/flarum-ext-suspend/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/flarum/flarum-ext-suspend/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/flarum/flarum-ext-suspend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flarum/flarum-ext-suspend/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/flarum/flarum-ext-suspend/statuses/826355ed5b1de92856c9d05d26011aa32cbba5b6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":41,"deletions":0,"changed_files":2}}