aboutsummaryrefslogtreecommitdiff
path: root/shard/lib
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-11-02 11:22:28 +0100
committerAlex Auvolat <alex@adnab.me>2018-11-02 11:22:28 +0100
commit3baa53f1da7f581619b066832b8303efbe9a46ba (patch)
treed6b49bd09fa915b93e13f3a03febc7fb1b38e9a4 /shard/lib
parent80200dc43f271938fb14ec4eb4712e8dd7375aeb (diff)
downloadshard-3baa53f1da7f581619b066832b8303efbe9a46ba.tar.gz
shard-3baa53f1da7f581619b066832b8303efbe9a46ba.zip
Remove friends list ; add some links
Diffstat (limited to 'shard/lib')
-rw-r--r--shard/lib/app/directory.ex8
-rw-r--r--shard/lib/app/identity.ex13
2 files changed, 3 insertions, 18 deletions
diff --git a/shard/lib/app/directory.ex b/shard/lib/app/directory.ex
index a15de21..f4b5a0b 100644
--- a/shard/lib/app/directory.ex
+++ b/shard/lib/app/directory.ex
@@ -200,12 +200,4 @@ defmodule SApp.Directory do
def rm_file(pid, name) do
GenServer.call(pid, {:rm_file, name})
end
-
- @doc"""
- Returns the friends directory of a user
- """
- def friends_dir(pk) do
- manifest = %Manifest{name: "friends", owner: pk, public: false}
- Shard.Manager.find_or_start manifest
- end
end
diff --git a/shard/lib/app/identity.ex b/shard/lib/app/identity.ex
index 468906f..69bed93 100644
--- a/shard/lib/app/identity.ex
+++ b/shard/lib/app/identity.ex
@@ -79,16 +79,9 @@ defmodule SApp.Identity do
end
def handle_cast(:send_deps, state) do
- default_deps =
- if Shard.Keys.have_sk?(state.pk) do
- [
- %SApp.Directory.Manifest{owner: state.pk, public: false, name: "friends"}
- ]
- else
- []
- end
-
- GenServer.cast(Shard.Manager, {:dep_list, state.id, default_deps})
+ # TODO: collections
+
+ GenServer.cast(Shard.Manager, {:dep_list, state.id, []})
{:noreply, state}
end