{"action":"created","comment":{"url":"https://api.github.com/repos/HabitRPG/habitica/pulls/comments/173610380","pull_request_review_id":102838709,"id":173610380,"diff_hunk":"@@ -504,6 +504,7 @@ function setUserStyles (newMessage, user) {\n       spookySparkles: userCopy.stats.buffs.spookySparkles,\n       snowball: userCopy.stats.buffs.snowball,\n     };\n+    userStyles.stats.class = userCopy.stats.class;","path":"website/server/models/group.js","position":null,"original_position":4,"commit_id":"e42913d1e520755145af9504b34620054c797960","original_commit_id":"8df19890f0ad3d98a12a9ee9975f0d87d5a2017c","user":{"login":"dmitrytorba","id":155270,"avatar_url":"https://avatars3.githubusercontent.com/u/155270?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitrytorba","html_url":"https://github.com/dmitrytorba","followers_url":"https://api.github.com/users/dmitrytorba/followers","following_url":"https://api.github.com/users/dmitrytorba/following{/other_user}","gists_url":"https://api.github.com/users/dmitrytorba/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrytorba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrytorba/subscriptions","organizations_url":"https://api.github.com/users/dmitrytorba/orgs","repos_url":"https://api.github.com/users/dmitrytorba/repos","events_url":"https://api.github.com/users/dmitrytorba/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrytorba/received_events","type":"User","site_admin":false},"body":"thanks for reviewing @negue !\r\nI've moved the `stats.class` assignment outside the `if (buffs)` statement","created_at":"2018-03-10T03:32:02Z","updated_at":"2018-03-10T03:32:02Z","html_url":"https://github.com/HabitRPG/habitica/pull/10040#discussion_r173610380","pull_request_url":"https://api.github.com/repos/HabitRPG/habitica/pulls/10040","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/HabitRPG/habitica/pulls/comments/173610380"},"html":{"href":"https://github.com/HabitRPG/habitica/pull/10040#discussion_r173610380"},"pull_request":{"href":"https://api.github.com/repos/HabitRPG/habitica/pulls/10040"}},"in_reply_to_id":172666993},"pull_request":{"url":"https://api.github.com/repos/HabitRPG/habitica/pulls/10040","id":170853748,"html_url":"https://github.com/HabitRPG/habitica/pull/10040","diff_url":"https://github.com/HabitRPG/habitica/pull/10040.diff","patch_url":"https://github.com/HabitRPG/habitica/pull/10040.patch","issue_url":"https://api.github.com/repos/HabitRPG/habitica/issues/10040","number":10040,"state":"open","locked":false,"title":"add stats.class to userStyles chat cache #10015","user":{"login":"dmitrytorba","id":155270,"avatar_url":"https://avatars3.githubusercontent.com/u/155270?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitrytorba","html_url":"https://github.com/dmitrytorba","followers_url":"https://api.github.com/users/dmitrytorba/followers","following_url":"https://api.github.com/users/dmitrytorba/following{/other_user}","gists_url":"https://api.github.com/users/dmitrytorba/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrytorba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrytorba/subscriptions","organizations_url":"https://api.github.com/users/dmitrytorba/orgs","repos_url":"https://api.github.com/users/dmitrytorba/repos","events_url":"https://api.github.com/users/dmitrytorba/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrytorba/received_events","type":"User","site_admin":false},"body":"[//]: # (Note: See http://habitica.wikia.com/wiki/Using_Your_Local_Install_to_Modify_Habitica%27s_Website_and_API for more info)\r\n\r\n[//]: # (Put Issue # or URL here, if applicable. This will automatically close the issue if your PR is merged in)\r\nFixes https://github.com/HabitRPG/habitica/issues/10015\r\n\r\n### Changes\r\n[//]: # (Describe the changes that were made in detail here. Include pictures if necessary)\r\nThe Flower avatar needs to know the user's class type to render correctly.  This PR adds code to setup the `userStyles.stats.class` variable.\r\n\r\n[//]: # (Put User ID in here - found on the Habitica website at User Icon > Settings > API)\r\n\r\n----\r\nUUID: 4b555b65-318a-42da-b112-bfe090e2d902\r\n","created_at":"2018-02-22T20:12:23Z","updated_at":"2018-03-10T03:32:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd1c3ec8492f79504c2260448b3a515b91c6b729","assignee":{"login":"negue","id":842273,"avatar_url":"https://avatars3.githubusercontent.com/u/842273?v=4","gravatar_id":"","url":"https://api.github.com/users/negue","html_url":"https://github.com/negue","followers_url":"https://api.github.com/users/negue/followers","following_url":"https://api.github.com/users/negue/following{/other_user}","gists_url":"https://api.github.com/users/negue/gists{/gist_id}","starred_url":"https://api.github.com/users/negue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/negue/subscriptions","organizations_url":"https://api.github.com/users/negue/orgs","repos_url":"https://api.github.com/users/negue/repos","events_url":"https://api.github.com/users/negue/events{/privacy}","received_events_url":"https://api.github.com/users/negue/received_events","type":"User","site_admin":false},"assignees":[{"login":"negue","id":842273,"avatar_url":"https://avatars3.githubusercontent.com/u/842273?v=4","gravatar_id":"","url":"https://api.github.com/users/negue","html_url":"https://github.com/negue","followers_url":"https://api.github.com/users/negue/followers","following_url":"https://api.github.com/users/negue/following{/other_user}","gists_url":"https://api.github.com/users/negue/gists{/gist_id}","starred_url":"https://api.github.com/users/negue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/negue/subscriptions","organizations_url":"https://api.github.com/users/negue/orgs","repos_url":"https://api.github.com/users/negue/repos","events_url":"https://api.github.com/users/negue/events{/privacy}","received_events_url":"https://api.github.com/users/negue/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":192741463,"url":"https://api.github.com/repos/HabitRPG/habitica/labels/status:%20pr:%20ready%20for%20review","name":"status: pr: ready for review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/HabitRPG/habitica/pulls/10040/commits","review_comments_url":"https://api.github.com/repos/HabitRPG/habitica/pulls/10040/comments","review_comment_url":"https://api.github.com/repos/HabitRPG/habitica/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HabitRPG/habitica/issues/10040/comments","statuses_url":"https://api.github.com/repos/HabitRPG/habitica/statuses/e42913d1e520755145af9504b34620054c797960","head":{"label":"dmitrytorba:avatar","ref":"avatar","sha":"e42913d1e520755145af9504b34620054c797960","user":{"login":"dmitrytorba","id":155270,"avatar_url":"https://avatars3.githubusercontent.com/u/155270?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitrytorba","html_url":"https://github.com/dmitrytorba","followers_url":"https://api.github.com/users/dmitrytorba/followers","following_url":"https://api.github.com/users/dmitrytorba/following{/other_user}","gists_url":"https://api.github.com/users/dmitrytorba/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrytorba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrytorba/subscriptions","organizations_url":"https://api.github.com/users/dmitrytorba/orgs","repos_url":"https://api.github.com/users/dmitrytorba/repos","events_url":"https://api.github.com/users/dmitrytorba/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrytorba/received_events","type":"User","site_admin":false},"repo":{"id":120197168,"name":"habitica","full_name":"dmitrytorba/habitica","owner":{"login":"dmitrytorba","id":155270,"avatar_url":"https://avatars3.githubusercontent.com/u/155270?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitrytorba","html_url":"https://github.com/dmitrytorba","followers_url":"https://api.github.com/users/dmitrytorba/followers","following_url":"https://api.github.com/users/dmitrytorba/following{/other_user}","gists_url":"https://api.github.com/users/dmitrytorba/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrytorba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrytorba/subscriptions","organizations_url":"https://api.github.com/users/dmitrytorba/orgs","repos_url":"https://api.github.com/users/dmitrytorba/repos","events_url":"https://api.github.com/users/dmitrytorba/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrytorba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dmitrytorba/habitica","description":"A habit tracker app which treats your goals like a Role Playing Game.","fork":true,"url":"https://api.github.com/repos/dmitrytorba/habitica","forks_url":"https://api.github.com/repos/dmitrytorba/habitica/forks","keys_url":"https://api.github.com/repos/dmitrytorba/habitica/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmitrytorba/habitica/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmitrytorba/habitica/teams","hooks_url":"https://api.github.com/repos/dmitrytorba/habitica/hooks","issue_events_url":"https://api.github.com/repos/dmitrytorba/habitica/issues/events{/number}","events_url":"https://api.github.com/repos/dmitrytorba/habitica/events","assignees_url":"https://api.github.com/repos/dmitrytorba/habitica/assignees{/user}","branches_url":"https://api.github.com/repos/dmitrytorba/habitica/branches{/branch}","tags_url":"https://api.github.com/repos/dmitrytorba/habitica/tags","blobs_url":"https://api.github.com/repos/dmitrytorba/habitica/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmitrytorba/habitica/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmitrytorba/habitica/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmitrytorba/habitica/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmitrytorba/habitica/statuses/{sha}","languages_url":"https://api.github.com/repos/dmitrytorba/habitica/languages","stargazers_url":"https://api.github.com/repos/dmitrytorba/habitica/stargazers","contributors_url":"https://api.github.com/repos/dmitrytorba/habitica/contributors","subscribers_url":"https://api.github.com/repos/dmitrytorba/habitica/subscribers","subscription_url":"https://api.github.com/repos/dmitrytorba/habitica/subscription","commits_url":"https://api.github.com/repos/dmitrytorba/habitica/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmitrytorba/habitica/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmitrytorba/habitica/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmitrytorba/habitica/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmitrytorba/habitica/contents/{+path}","compare_url":"https://api.github.com/repos/dmitrytorba/habitica/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmitrytorba/habitica/merges","archive_url":"https://api.github.com/repos/dmitrytorba/habitica/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmitrytorba/habitica/downloads","issues_url":"https://api.github.com/repos/dmitrytorba/habitica/issues{/number}","pulls_url":"https://api.github.com/repos/dmitrytorba/habitica/pulls{/number}","milestones_url":"https://api.github.com/repos/dmitrytorba/habitica/milestones{/number}","notifications_url":"https://api.github.com/repos/dmitrytorba/habitica/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmitrytorba/habitica/labels{/name}","releases_url":"https://api.github.com/repos/dmitrytorba/habitica/releases{/id}","deployments_url":"https://api.github.com/repos/dmitrytorba/habitica/deployments","created_at":"2018-02-04T15:29:54Z","updated_at":"2018-02-04T15:30:07Z","pushed_at":"2018-03-10T03:27:04Z","git_url":"git://github.com/dmitrytorba/habitica.git","ssh_url":"git@github.com:dmitrytorba/habitica.git","clone_url":"https://github.com/dmitrytorba/habitica.git","svn_url":"https://github.com/dmitrytorba/habitica","homepage":"https://habitica.com","size":865777,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"HabitRPG:develop","ref":"develop","sha":"8d1b1ff794a796fcd20c6d6446e4bb25732b345f","user":{"login":"HabitRPG","id":3834775,"avatar_url":"https://avatars3.githubusercontent.com/u/3834775?v=4","gravatar_id":"","url":"https://api.github.com/users/HabitRPG","html_url":"https://github.com/HabitRPG","followers_url":"https://api.github.com/users/HabitRPG/followers","following_url":"https://api.github.com/users/HabitRPG/following{/other_user}","gists_url":"https://api.github.com/users/HabitRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/HabitRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HabitRPG/subscriptions","organizations_url":"https://api.github.com/users/HabitRPG/orgs","repos_url":"https://api.github.com/users/HabitRPG/repos","events_url":"https://api.github.com/users/HabitRPG/events{/privacy}","received_events_url":"https://api.github.com/users/HabitRPG/received_events","type":"Organization","site_admin":false},"repo":{"id":4578898,"name":"habitica","full_name":"HabitRPG/habitica","owner":{"login":"HabitRPG","id":3834775,"avatar_url":"https://avatars3.githubusercontent.com/u/3834775?v=4","gravatar_id":"","url":"https://api.github.com/users/HabitRPG","html_url":"https://github.com/HabitRPG","followers_url":"https://api.github.com/users/HabitRPG/followers","following_url":"https://api.github.com/users/HabitRPG/following{/other_user}","gists_url":"https://api.github.com/users/HabitRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/HabitRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HabitRPG/subscriptions","organizations_url":"https://api.github.com/users/HabitRPG/orgs","repos_url":"https://api.github.com/users/HabitRPG/repos","events_url":"https://api.github.com/users/HabitRPG/events{/privacy}","received_events_url":"https://api.github.com/users/HabitRPG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HabitRPG/habitica","description":"A habit tracker app which treats your goals like a Role Playing Game.","fork":false,"url":"https://api.github.com/repos/HabitRPG/habitica","forks_url":"https://api.github.com/repos/HabitRPG/habitica/forks","keys_url":"https://api.github.com/repos/HabitRPG/habitica/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HabitRPG/habitica/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HabitRPG/habitica/teams","hooks_url":"https://api.github.com/repos/HabitRPG/habitica/hooks","issue_events_url":"https://api.github.com/repos/HabitRPG/habitica/issues/events{/number}","events_url":"https://api.github.com/repos/HabitRPG/habitica/events","assignees_url":"https://api.github.com/repos/HabitRPG/habitica/assignees{/user}","branches_url":"https://api.github.com/repos/HabitRPG/habitica/branches{/branch}","tags_url":"https://api.github.com/repos/HabitRPG/habitica/tags","blobs_url":"https://api.github.com/repos/HabitRPG/habitica/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HabitRPG/habitica/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HabitRPG/habitica/git/refs{/sha}","trees_url":"https://api.github.com/repos/HabitRPG/habitica/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HabitRPG/habitica/statuses/{sha}","languages_url":"https://api.github.com/repos/HabitRPG/habitica/languages","stargazers_url":"https://api.github.com/repos/HabitRPG/habitica/stargazers","contributors_url":"https://api.github.com/repos/HabitRPG/habitica/contributors","subscribers_url":"https://api.github.com/repos/HabitRPG/habitica/subscribers","subscription_url":"https://api.github.com/repos/HabitRPG/habitica/subscription","commits_url":"https://api.github.com/repos/HabitRPG/habitica/commits{/sha}","git_commits_url":"https://api.github.com/repos/HabitRPG/habitica/git/commits{/sha}","comments_url":"https://api.github.com/repos/HabitRPG/habitica/comments{/number}","issue_comment_url":"https://api.github.com/repos/HabitRPG/habitica/issues/comments{/number}","contents_url":"https://api.github.com/repos/HabitRPG/habitica/contents/{+path}","compare_url":"https://api.github.com/repos/HabitRPG/habitica/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HabitRPG/habitica/merges","archive_url":"https://api.github.com/repos/HabitRPG/habitica/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HabitRPG/habitica/downloads","issues_url":"https://api.github.com/repos/HabitRPG/habitica/issues{/number}","pulls_url":"https://api.github.com/repos/HabitRPG/habitica/pulls{/number}","milestones_url":"https://api.github.com/repos/HabitRPG/habitica/milestones{/number}","notifications_url":"https://api.github.com/repos/HabitRPG/habitica/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HabitRPG/habitica/labels{/name}","releases_url":"https://api.github.com/repos/HabitRPG/habitica/releases{/id}","deployments_url":"https://api.github.com/repos/HabitRPG/habitica/deployments","created_at":"2012-06-06T22:49:48Z","updated_at":"2018-03-10T03:15:28Z","pushed_at":"2018-03-10T03:27:06Z","git_url":"git://github.com/HabitRPG/habitica.git","ssh_url":"git@github.com:HabitRPG/habitica.git","clone_url":"https://github.com/HabitRPG/habitica.git","svn_url":"https://github.com/HabitRPG/habitica","homepage":"https://habitica.com","size":866441,"stargazers_count":5760,"watchers_count":5760,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2524,"mirror_url":null,"archived":false,"open_issues_count":353,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":2524,"open_issues":353,"watchers":5760,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/HabitRPG/habitica/pulls/10040"},"html":{"href":"https://github.com/HabitRPG/habitica/pull/10040"},"issue":{"href":"https://api.github.com/repos/HabitRPG/habitica/issues/10040"},"comments":{"href":"https://api.github.com/repos/HabitRPG/habitica/issues/10040/comments"},"review_comments":{"href":"https://api.github.com/repos/HabitRPG/habitica/pulls/10040/comments"},"review_comment":{"href":"https://api.github.com/repos/HabitRPG/habitica/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HabitRPG/habitica/pulls/10040/commits"},"statuses":{"href":"https://api.github.com/repos/HabitRPG/habitica/statuses/e42913d1e520755145af9504b34620054c797960"}},"author_association":"NONE"}}
{"actor":{"display_login":"dmitrytorba"}}