Assets from github can't be fetched
zaaakher opened this issue ยท 5 comments
In an attempt to work around #377 I went to github.com and edit my note.md file and uploaded a gif to it. And it looks and works fine on github ๐
But when I go to lumen to view that same note it seems the asset isn't being displayed because it keeps facing a network error when fetching them.
Ok my workaround here works after changing the link to the asset for an actual URL to a path to the asset in uploads
folder
Oh interesting. I wonder if the github.com image is protected (because I'm assuming your notes
repo is private) and Lumen isn't attaching a token when requesting that asset.
@colebemis ah you're right, I think this issue is only with private repos.
We could perhaps add a condition if the image src has github.com in it. But I'm not sure how we can attach the github auth token to the image request.
lumen/src/components/markdown.tsx
Lines 571 to 587 in 0606827
This would be a nice enhancement if it's an easy change but I'm not sure it's worth the effort if it's hard, since Lumen already supports direct image uploads on private repos.
Just learnt something. I dis not about image support in notes