Vivian is a user on mastodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

Vivian @dawnbutterfly@mastodon.social

Vivian boosted

roses are red
violets are blue
in surveillance capitalism
poem reads you

and shows you ads
for flower shops
and tracks your clicks
and never stops

it cares not about
if privacy's harmed
the money is green
when people are farmed

twitter is cyan
facebook is blue
your friends are the product
and so are you

@Gargron I'm playing around with the mastodon ruby API client, and came across a puzzle.

From what I gather, authorisation goes 'app → token → access'; i.e. you register an app to get an id+secret, then use those to get an oauth token.

In the ruby client `create_app` uses `perform request` which constructs a Request which takes a client, constructed with an oauth token, which I don't have because I'm registering the app.

Have I got this right, or am I misunderstanding how it works?

Vivian boosted

my message to anyone having trouble spinning up a mastodon development environment:

mastodon is written in ruby on rails, which (despite it's intentions) has a _really_ steep learning curve. from setting up to writing code there is a lot of "conventions" which basically amount to shortcuts that are easy to miss if you don't know about them

I recommend doing a few RoR tutorials before jumping into mastodon, especially those regarding setup, gems, database installing, and the MVC system

@Gargron update on gif => webm
Using paperclip to convert the gifs to webms seems like a bad approach.
Even ignoring how I can't get it working with paperclip-av (even though the imagemagick processor works fine), the database and the files get out of sync (i.e. database says image/jpeg when we actually have an image/png on disk).
Intercepting things beforehand should work better, and not cause back-compat issues too, so I'll try that next.

Gah, nearly have gif => webm working. Caught on paperclip spoof detection. Paperclip complains when I turn the original of a gif to webm. @Gargron, any ideas?

did a destroy+up and it fixed itself

By that, I mean rails doesn't auto-update when you change a file on the host, which means you have to reload the server to sync changes. 😒

hmm, rails doesn't appear to be updating file correctly through vagrant 😕

Yay.

Dev tip: confirmation emails have their text logged in development.log.

mastodon.social/media/ofZO3WLx

@effy fixed it! Had to install yarn.

@effy Hi effy, your Vagrantfile doesn't appear to be working correctly; I get lots of errors on provision; yarn doesn't get installed and the ruby version (2.3.3) is out of sync with parser gem.

@blacklemon67 hey blackle, did you manage to get effy's vagrant environment up?

@effy 😂 I set up my own vagrant instance for mastodon development; took a break to get familiar with rails, and you've pushed an official Vagrantfile. Good work! 😄

Hah! got mastodon working in a vagrant VM 😊