Open 0xSemicolon opened 6 months ago
hey @0xSemicolon this is a great idea! do you have capacity to add this to herocast? feel free to submit this as a PR. otherwise I'll try to look into it lateron
Hey @hellno I just created https://github.com/hellno/herocast/pull/251. I don't have the space to get the dev environment setup but I think what's there will just work. Needs someone to verify but it should be straight forward;
/post
screen, it should still add a draft/post?text=Blah
it should add a draft with the text "Blah"/post?text=Blah1&text=Blah2
it should only add "Blah1" and ignore "Blah2"awesome! I'll do the local testing. thanks for contributing 🙏🙏🙏
It's not possible to prompt for a cast template like you can in warpcast with
warpcast.com/~/compose?text=&embeds[]=
.Having a quick look at the code base I think the following approach makes sense; Updating
@/pages/post/index.tsx
along the lines of the following:This would handle the following cases:
/post
, empty draft added if no drafts./post?text=Hey
, a new draft added for the prompted./post?text=1&text=2
, only one draft added.Downsides to this approach is that drafts could build up if there's lots of links being clicked like this which isn't a factor currently. Maybe it would make sense to destroy the proposed draft if the user navigates away?