mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Persist forks in home db
Summary: Adds information about forks to the home db. This will be used later by the UI to list forks of documents. Test Plan: Browser and server tests. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3772
This commit is contained in:
@@ -30,6 +30,7 @@ export function makeForkIds(options: { userId: number|null, isAnonymous: boolean
|
||||
const docId = parseUrlId(options.trunkDocId).trunkId;
|
||||
const urlId = parseUrlId(options.trunkUrlId).trunkId;
|
||||
return {
|
||||
forkId,
|
||||
docId: buildUrlId({trunkId: docId, forkId, forkUserId}),
|
||||
urlId: buildUrlId({trunkId: urlId, forkId, forkUserId}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user