aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/views/identity_view.ex
diff options
context:
space:
mode:
Diffstat (limited to 'shardweb/lib/views/identity_view.ex')
-rw-r--r--shardweb/lib/views/identity_view.ex5
1 files changed, 5 insertions, 0 deletions
diff --git a/shardweb/lib/views/identity_view.ex b/shardweb/lib/views/identity_view.ex
index 1844ce8..86423b2 100644
--- a/shardweb/lib/views/identity_view.ex
+++ b/shardweb/lib/views/identity_view.ex
@@ -18,4 +18,9 @@ defmodule ShardWeb.IdentityView do
end
end)
end
+
+ def is_friend(conn, pk) do
+ fd = SApp.Directory.friends_dir(conn.assigns.pk)
+ SApp.Directory.find(fd, %SApp.Identity.Manifest{pk: pk}) != nil
+ end
end