Skip to content

Commit

Permalink
public -> follows
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalmi committed May 6, 2024
1 parent 99c733b commit 283575e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/canvas/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function Canvas() {
const [scale, setScale] = useState(1);
const docName = useMemo(() => `apps/canvas/documents/${file || 'public'}`, [file]);
const authors = useAuthors(
owner || 'public',
owner || 'follows',
owner !== 'follows' ? `${docName}/writers` : undefined,
);
const editable = authors.includes(myPubKey);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/components/share/ShareMenuModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function ShareMenuModal({
}, [owner]);
const fileName = useMemo(() => filePath.split('/').pop(), [filePath]);
const authors = useAuthors(
owner || 'public',
owner || 'follows',
owner !== 'follows' ? `${filePath}/writers` : undefined,
);

Expand Down

0 comments on commit 283575e

Please sign in to comment.