Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
dansup
dansup
@dansup@mastodon.social  ·  activity timestamp 10 hours ago

So one tricky aspect I had to solve with Loops is how we use a hashid of the snowflake id for videos, comments and replies in public links, but also deference them to their full ActivityPub permalink.

I built a `matchUrlTemplate` helper that uses regexes to match our url schemas in a way that supports `/v/abcdefg1-` and `/ap/users/1/video/1234567890` links.

It works great, and I will be bringing this to Pixelfed to improve federation support ✨

https://github.com/joinloops/loops-server/blob/main/app/Federation/Handlers/LikeHandler.php#L150-L175

#LoopsDev #ActivityPub

  • Copy link
  • Flag this post
  • Block

A small Bonfire corner on the internet

This is a small personal instance of Bonfire in the Fediverse.

A small Bonfire corner on the internet: About · Code of conduct · Privacy ·
Bonfire social · 1.0.1-beta.33 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Code of Conduct