pass fetch method to explorer

This commit is contained in:
Sebastian Jambor 2023-02-04 19:50:38 +01:00
parent ed520d497c
commit 13a5630949

View file

@ -69,7 +69,13 @@ class ActivityPubExplorer extends ImmutablePureComponent {
</DismissableBanner> </DismissableBanner>
<div className={`${darkMode ? 'dark' : ''}`}> <div className={`${darkMode ? 'dark' : ''}`}>
<Explorer initialValue={data} initialUrl={url} /> <Explorer
fetchMethod={async (url) =>
fetch('/api/v1/json_ld?' + new URLSearchParams({ url }).toString())
}
initialValue={data}
initialUrl={url}
/>
</div> </div>
</Column> </Column>
); );