@bot @errante ask @kroner to run this script on the server
#!/bin/sh PRE="sudo -u postgres psql -U postgres -d pleroma -c" sql="select u.nickname, uu.nickname from user_relationships r join users u on u.id = r.source_id join users uu on uu.id = r.target_id where relationship_type = 1 and uu.nickname = '""$1'" ${PRE} "$sql"