Closed nichoth closed 1 year ago
For the sake of simplicity, we are adding audience members to the audience
doc.
check for new audiences When a user opens the app, need to
acceptShare
in wnfs
.See this page for info on requesting deltas.
shareId
field in the audience, and add one if it does not exist & the audience has members. Adding a shareId
means calling the wnfs.sharePrivate
method, with the path & audience members.the query
audienceId
field)name
of the audience to get the right wnfs path for the postshareId
for the post, then need to call wnfs.acceptShare
How do we know if you have accepted a given shareId? Could just try reading the path, and see if it errors. Could check if the friend's directory exists in the Shared with me
path.
the scenario
You make a new account by accepting an invitation. The problem is that the app will try to read posts before you have accepted the shares.
Home view query needs to look at read permissions of the user.
shareId
to an audienceThis is another way of saying we need to revise the home query, so that it respects read permissions in the query
Only get posts by people with whom you have accepted their share.