{"id":18406137,"url":"https://github.com/nodebb/nodebb-plugin-friends","last_synced_at":"2025-04-07T08:32:19.891Z","repository":{"id":28053180,"uuid":"31549417","full_name":"NodeBB/nodebb-plugin-friends","owner":"NodeBB","description":"Friendship plugin ala facebook","archived":false,"fork":false,"pushed_at":"2022-03-03T17:13:37.000Z","size":55,"stargazers_count":7,"open_issues_count":2,"forks_count":8,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-04-14T11:52:02.538Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NodeBB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-02T16:18:54.000Z","updated_at":"2022-03-03T17:13:19.000Z","dependencies_parsed_at":"2022-09-04T16:22:39.921Z","dependency_job_id":null,"html_url":"https://github.com/NodeBB/nodebb-plugin-friends","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB%2Fnodebb-plugin-friends","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB%2Fnodebb-plugin-friends/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB%2Fnodebb-plugin-friends/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NodeBB%2Fnodebb-plugin-friends/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NodeBB","download_url":"https://codeload.github.com/NodeBB/nodebb-plugin-friends/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247620367,"owners_count":20968197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T03:07:07.414Z","updated_at":"2025-04-07T08:32:19.582Z","avatar_url":"https://github.com/NodeBB.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodebb-plugin-friends\n\nFriendship plugin ala facebook\n\nReplaces the default follow mechanic (ala Twitter) with a moderated friending system which allows users to approve/deny friend requests.\n\n\n## Optional\n\nIf you want a friends button in the /users list, add the following in partials/users_list.tpl\n\n```\n\u003c!-- IF users.isFriends --\u003e\n\u003cbutton class=\"btn btn-link friend-button\" data-uid=\"{users.uid}\" data-type=\"unfriend\" data-username=\"{users.username}\"\u003e[[plugin-friends:action.remove-friend]]\u003c/button\u003e\n\u003c!-- ELSE --\u003e\n\u003cbutton class=\"btn btn-warning friend-button\" data-uid=\"{users.uid}\" data-type=\"friend\" data-username=\"{users.username}\"\u003e[[plugin-friends:action.add-friend]]\u003c/button\u003e\n\u003c!-- ENDIF users.isFriends --\u003e\n```\n\n\n## Integration with Write API\n\nIf you have the [Write API Plugin](https://github.com/julianlam/nodebb-plugin-write-api) installed, the following routes are exposed for you to use:\n\n* `/friends/:uid`\n    * `GET /`\n        * Retrieves all friendship-related data pertaining to the user specified via `uid`, **including pending friendship data**\n        * Can only be called by an administrative account\n    * `POST /`\n        * Requests a friendship from user specified via `userslug`, or accepts a pending friendship, if one is outstanding\n        * Accepts: Nothing\n    * `DELETE /`\n        * Unfriends the user specified via `uid` (relative to the calling user), or rejects a friendship request, if one is outstanding\n        * Accepts: Nothing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodebb%2Fnodebb-plugin-friends","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodebb%2Fnodebb-plugin-friends","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodebb%2Fnodebb-plugin-friends/lists"}