{"action":"created","issue":{"url":"https://api.github.com/repos/humhub/humhub/issues/532","labels_url":"https://api.github.com/repos/humhub/humhub/issues/532/labels{/name}","comments_url":"https://api.github.com/repos/humhub/humhub/issues/532/comments","events_url":"https://api.github.com/repos/humhub/humhub/issues/532/events","html_url":"https://github.com/humhub/humhub/issues/532","id":52549732,"number":532,"title":"Adding Ability to \"Friend\" Users","user":{"login":"acinelli","id":9409590,"avatar_url":"https://avatars.githubusercontent.com/u/9409590?v=3","gravatar_id":"","url":"https://api.github.com/users/acinelli","html_url":"https://github.com/acinelli","followers_url":"https://api.github.com/users/acinelli/followers","following_url":"https://api.github.com/users/acinelli/following{/other_user}","gists_url":"https://api.github.com/users/acinelli/gists{/gist_id}","starred_url":"https://api.github.com/users/acinelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acinelli/subscriptions","organizations_url":"https://api.github.com/users/acinelli/orgs","repos_url":"https://api.github.com/users/acinelli/repos","events_url":"https://api.github.com/users/acinelli/events{/privacy}","received_events_url":"https://api.github.com/users/acinelli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/humhub/humhub/labels/Status:Proposed","name":"Status:Proposed","color":"fbca04"},{"url":"https://api.github.com/repos/humhub/humhub/labels/Type:Enhancement","name":"Type:Enhancement","color":"37ac4e"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-20T03:08:30Z","updated_at":"2015-03-17T00:38:51Z","closed_at":null,"body":"I'm looking to add User \"Friend\" functionality to HumHub for a current project and was hoping to get some input on the best way to go about doing so.  I looked at modules, but I'm not sure I'm able to override default User behavior.  The functionality I want to add is:\r\n\r\n- Allow disable this new Friend functionality, which would restore the original functionality of \"Follow\" (which is why I thought a module might be best)\r\n- User to request \"Friend\" status from other User (can accept, decline, block)\r\n- Restrict ability to \"Follow\" ony if Users are first \"Friends\"\r\n- Becoming \"Friends\" with another User automatically creates \"Follows\" between the Users\r\n- Once Users are \"Friends\", each User will have the ability to \"Unfollow\" their Friend User, which will keep Friend status but not display the Unfollowed User's posts on dashboard, status notifications, etc.\r\n- Update all \"Follower\" stats, widgets, etc to include Friends instead (for example on User Profile, only display \"Friends\" and not \"Following\" or \"Followers\"\r\n\r\nThe addition of Friend would not affect the Follow functionality except that if Friend was enabled, a User would first need to be a Friend before you could Follow him or her.\r\n\r\nI didn't want to stray from the HumHub master branch to implement this.  If this feature is popular enough, maybe we can add to core, allow an admin config to either enable \"Friend\" mode or keep current \"Follow\" functionality.\r\n\r\nAlso, I was thinking if a current admin wanted to now use \"Friend\" mode, on initial \"module\" activation, any Follows in the DB would generate Friend requests, perhaps send out an email saying to continue Following user, you must first become Friends.\r\n\r\nLet me know your thoughts, thanks."},"comment":{"url":"https://api.github.com/repos/humhub/humhub/issues/comments/82005896","html_url":"https://github.com/humhub/humhub/issues/532#issuecomment-82005896","issue_url":"https://api.github.com/repos/humhub/humhub/issues/532","id":82005896,"user":{"login":"acinelli","id":9409590,"avatar_url":"https://avatars.githubusercontent.com/u/9409590?v=3","gravatar_id":"","url":"https://api.github.com/users/acinelli","html_url":"https://github.com/acinelli","followers_url":"https://api.github.com/users/acinelli/followers","following_url":"https://api.github.com/users/acinelli/following{/other_user}","gists_url":"https://api.github.com/users/acinelli/gists{/gist_id}","starred_url":"https://api.github.com/users/acinelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acinelli/subscriptions","organizations_url":"https://api.github.com/users/acinelli/orgs","repos_url":"https://api.github.com/users/acinelli/repos","events_url":"https://api.github.com/users/acinelli/events{/privacy}","received_events_url":"https://api.github.com/users/acinelli/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T00:38:51Z","updated_at":"2015-03-17T00:38:51Z","body":"Continuing work on this, would need Issue #548 to be merged into master at some point since it is the basis of this Friend feature (adding privacy settings \"who can friend me\", \"only friends can see my posts\", etc)"}}