Andrew Feeney · @andrewfeeney
675 followers · 2215 posts · Server phpc.social

Taking a break from the fishing game I was building while taking a break from to see if I can build a tiny in .

It is a bot which flips a coin.

I'm calling it .

So far I can get a random coin flip result, and set a GET request. This might take a while.

github.com/AndrewFeeney/coinfl

#TuskPHP #mastodonbot #rust #coinflipbot

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
495 followers · 1063 posts · Server phpc.social

@beausimensen @Njames @ramsey @jaytaph @coulb I always try to mark my work on Tusk (working title only, will probably rename if I spend much more time on it) with the hashtag, and the more general hashtag.

#TuskPHP #activitypubdev

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
370 followers · 775 posts · Server phpc.social

Current status: Temporarily distracted from my fiddling making an arcade style fishing game for my daughter for the holidays.

That's right, fishing. I thought it was pretty obvious from the video. Can't you see the fishing line and the fish?

#TuskPHP

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
312 followers · 603 posts · Server phpc.social

@ShawnMcCool@fosstodon.org @ShawnMcCool@noc.social I've watched this talk twice and I'd like to spend some time working with this approach to see how it feels.

I'm going to try to incorporate this kind of approach in my project and see how it goes.

#TuskPHP

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
307 followers · 597 posts · Server phpc.social

update:

Success! I was able to post a reply to an existing toot on a Mastodon instance.

#TuskPHP #php #laravel #activitypub #activitypubdev

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
297 followers · 582 posts · Server phpc.social

Tonight's increment:

Signing the request and adding the signature header:

github.com/AndrewFeeney/tusk/c

Now to swap out the existing implementation.

#TuskPHP #php #laravel #activitypub #activitypubdev

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
284 followers · 570 posts · Server phpc.social

Today's increment for :

Finished a method to generate the signing string. Next will be to implement adding the signature header to the request.

Been a bit distracted this week with family life, and ChatGPT.

Crawling along, but getting there.

github.com/AndrewFeeney/tusk/c

#TuskPHP #php #laravel #activitypub #activitypubdev

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
208 followers · 494 posts · Server phpc.social

Another thought. I'm thinking I'll try to build it without the assumption of a SQL database. It seems to me one of the scaling issues that the community is having is around the fact that the database has to be a single node, and can only be scaled vertically, which works fine but has limits and becomes expensive.

I'm thinking I would like to design it with compatibility with a database option that's designed to run as a cluster to allow for easier horizontal scaling.

#TuskPHP #mastodonadmin

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
202 followers · 490 posts · Server phpc.social

Tonight's increment:

Among other things, inroads into logic for determining the appropriate signing string for the request. This may be the origin of my problem with getting mastodon to verify the signature of my request when .

github.com/AndrewFeeney/tusk/c

#TuskPHP #federating #php #laravel #activitypub #activitypubdev

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
201 followers · 482 posts · Server phpc.social

I’m thinking through directions for in terms what makes sense for me to spend my spare time on.

As tempting as it feels to jump into front end stuff and start building my own Twitter clone, I feel like I need to avoid that urge. I know I *could* do that and it would be fun for a while, but in the end it’s a recipe for an abandoned project.

My opinions on a microblogging front end won’t please anyone but me, and I can’t build something as slick as what people are used to in spare time.

#TuskPHP

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
192 followers · 472 posts · Server phpc.social

Tonight's increment.

After much gnashing of teeth and some lessons on RSA padding schemes over the last few days, I get a simple test up and running for a basic signature service. I haven't actually swapped out the existing signature implementation yet but I'm hoping this will solve my signature woes.

I took my example values from this document datatracker.ietf.org/doc/html/ which was cited in the landrok/activitypub package codebase.

#TuskPHP #php #activitypub #activitypubdev #laravel

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
171 followers · 391 posts · Server phpc.social

update.

I've been spinning my wheels for a couple of days trying to post a reply to a toot on mastodon. I've ended up just getting 500 errors back from mastodon and I'm out of ideas of how to debug that without deploying my own instance. I've tried fiddling around with a local dev instance but it complains about self signed SSL.

Instead I'm going to take a step back and see what other parts of I can implement in my experimental project.

#TuskPHP #activitypub #php #laravel #activitypubdev

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
169 followers · 370 posts · Server phpc.social

Tonight's contribution:

I think I've sorted the digest header issues, and I'm now getting 500 errors from Mastadon. I can see some errors in my logic, and resulting JSON so I've got some leads to follow, but once again it's time to get some sleep.

Slowly getting closer ...

#TuskPHP #php #laravel #activitypub #activitypubdev

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
155 followers · 291 posts · Server phpc.social

Tonight's contribution.

After deploying my work so far to a public server I found that I was missing the "Digest" header. Turns out that this is a requirement which has been added to Mastodon's ActivityPub implementation since the article I was reading had been written.

Some googling head me to a few online discussions, and finally to this example from the community: git.drupalcode.org/project/act which was helpful.

#TuskPHP #drupal #php #laravel #activitypub

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
152 followers · 276 posts · Server phpc.social

Tonights contribution:

Implementing a show post endpoint, some refactoring, and finally the command to send a reply to a post:

github.com/AndrewFeeney/tusk/c

_In theory_ if this was deployed to a domain secured with TLS it would be possible to use to reply to posts with this command.

I haven't tested it though because it's late and I've run out of time to deploy it somewhere. Maybe tomorrow ...

#TuskPHP #php #laravel #activitypub

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
142 followers · 258 posts · Server phpc.social

Latest contribution.

A little more refactoring, cleaning up some domain language confusion between usernames and handles.

github.com/AndrewFeeney/tusk/c

I'm really skirting around the edges of actual "try sending a post" thing ... maybe tomorrow.

#TuskPHP #php #laravel #activitypub

Last updated 2 years ago

Julio J. 🀲 :successKid: · @j3j5
67 followers · 241 posts · Server hachyderm.io

Hey @andrewfeeney , I saw is moving forward nicely. Have you started testing against a mastodon instance? I seem to be doing something wrong. When I search my user from Mastodon, it calls my server to retrieve the actor's JSON-LD on the link specified by webfinger, but there's something it does not like, although idk what.

See hachyderm.io/@j3j5/10937843322

#TuskPHP

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
126 followers · 227 posts · Server phpc.social

In the , does the term refer to the fully qualified username and dome, e.g. andrewfeeney@php.social? Is the leading '@' considered part of the 'handle'?

#actionpub #TuskPHP #handle #fediverse

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
125 followers · 226 posts · Server phpc.social

My latest contribution:

I allowed myself the luxury of some refactoring. As often happens when I do that I think I might have taken things a bit far, and neglected to honour my previously stated intentions of not worrying about architecture yet.

I've decoupled things from the database a bit and refactoring the existing logic into domain objects. Not sure if the new namespace structure will stick.

github.com/AndrewFeeney/tusk/c

Next step, back to that command.

#activitypub #laravel #php #TuskPHP

Last updated 2 years ago

Andrew Feeney · @andrewfeeney
120 followers · 223 posts · Server phpc.social

Latest increment:

I signed the request to send a reply to a Mastodon post and verified the signature in the test.

github.com/AndrewFeeney/tusk/c

Next step will be to add a command to manually trigger a command, and then deploy it to a domain secured with TLS, and see if it actually works.

#activitypub #laravel #php #TuskPHP

Last updated 2 years ago