by adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making packages, cutting per-platform releases, and the three-tier skill layout (user skills ship, dev-skills/ and publish-skills/ stay source-only). adom-wiki is the current tool; adompkg is deprecated.
Shared with me: also list pages opened through a share link
For @kcknox (Colby).
"Shared with me" should list every private page I can get back to: the ones shared with my account by name, and the ones I opened through a share link.
What is there now
3fdd6003 (today) added "Shared with me" to the account menu (/users/<you>/shared, GET /api/me/shared). It lists pages from page_grants and folders from page_path_grants. That covers pages shared with me directly.
What is missing
A page I opened through a share link (?share=<token>) never shows up there. The link binds the browser, not the account: redeemToken puts a device entry in the wiki_share cookie, and page_share_views records the share, device, path, IP and browser, but no account. So:
- If I open a share link while signed in, the page is not in my "Shared with me" list.
- If I clear cookies, switch browsers or lose the link, I have no way back to the page, even though the link is still live.
Asked for
- When a signed-in account redeems a share link, or views a page through a browser already bound to one, record that account against the share.
- List those pages in "Shared with me" (and
/api/me/shared) next to the direct shares, marked as opened through a link, with who made the link, its scope (full, overview or folder) and when it expires. A folder link lands on its folder, as it does when opened. - Only live links: a revoked or expired link drops out of the list, the same as
LIVE_GRANTdoes for direct shares.
Questions for you
- Should a link opened while signed out be attached to the account when that browser later signs in (from the
wiki_sharecookie entries)? - Is the list entry only a bookmark, or does it let the account open the page from another browser? Opening it elsewhere would get around a link's
max_devicescap, so a bookmark seems safer, but it is your call. - Should the owner's view log on
/<owner>/<slug>/sharesshow the account name for signed-in viewers?