Skip to content

User Connections

v0.4.0

Follows, mutual connections and blocking between users

Install User Connections

Social relationships between users: one-way follows, two-way connections that both users accept, and blocking that removes existing follows and connections. Every relationship action is logged. It adds an admin statistics page and a user page for managing one's own connections.

Use it when

  • Your community app needs follow and friend-request features
  • Users must be able to block each other

What it gives you

  • Follows (one-way, no consent)
  • Connections (two-way, request and accept)
  • Blocking that removes follows and connections
  • History log of relationship actions
  • Admin statistics page and user LiveView with tabs

Example

From the README
PhoenixKitUserConnections.follow(current_user, other_user)
PhoenixKitUserConnections.block(current_user, other_user, "reason")

User Connections news

Nothing posted about User Connections yet. Read its changelog or see all PhoenixKit news.

Install

1 Add to mix.exs

deps
{:phoenix_kit_user_connections, "~> 0.4"}

2 Fetch it and run its migrations

Terminal
$ mix deps.get && mix phoenix_kit.update

3 Switch it on in /admin/modules

Releases
  1. 0.4.0
  2. 0.3.0
  3. 0.2.3
Admin
/admin/connections

Related modules

What it needs, what builds on it, and its neighbours in Platform & tools.