Game of Thrones: Who spoke the most, and what?

A simple word cloud from GOT script.

bevs.xyz/blog/2022/11/got-word

Okay, this is a test comment to check whether it comes under my blog. Don’t panic!

Show thread

@bevsxyz Mm, doesn’t look like that worked. Though I hope you get it to work. I was contemplating Hugo and Mastodon comments as well.

@trinsec I can get our toots in get request. The guides i found for Hugo seem to be complicated for me(because of the javascript ofcourse). Well enough for the day I’m gonna sleep. If I figure it out i will be adding it to the wowchemy theme and maybe even write another blog😂 addressing my roadblocks.

@trinsec

curl https://qoto.org/api/v1/statuses/109399795717279616/context

That’s the simple curl i did. The json response seems intuitive. I will just have to figure out how the others mapped it to the ui.

@trinsec Okay for some reason, the get request from the code is denied!

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://qoto.org/api/v1/statuses/109399795717279616/context. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘*, *’).

I am not sure if it is some server setting that only the admin can do something about.

@bevsxyz

Can you link me to the status for which this get request is trying to get (easier than me trying to mangle the url)…. My guess is that the status isnt public.

@trinsec

@bevsxyz

Ok so thats not it then… obviously the API does work or else the clients wouldnt work… but i need to re-read ont he specifics of the API to figure out what error you may have made.

@trinsec

@freemo @trinsec i think it’s the way I have made the request. One thing i changed in the code was to use the cdn version of dompurify package rather than a local one. But from what I’ve seen the fetching is not done by the package and that’s where the error is happening.

Ha i saw a js library for mastodon but that seemed to require a token.

Follow

@bevsxyz

ITs been a while since I fussed with this side of the code sadly… Im not sure ill be much help without doing some research first.

@trinsec

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.