Source code is at https://github.com/edent/location-activitypub-symfony
Very much a Minimum Viable Product. Will blog about how it works this weekend.
Source code is at https://github.com/edent/location-activitypub-symfony
Very much a Minimum Viable Product. Will blog about how it works this weekend.
Yesterday I went out into the real world and used my self-built FourSquare-forFediverse clone for the first time!
You can see the results by following @edent_location
✅ Location metadata attached
✅ Images with alt text
✅ Links to OSM
❌ No parsing of URls or Hashtags
❌ Location accuracy still a bit dodgy
❌ UI very bare-bones
Pretty good result for half-a-dozen PHP files.
Hmmm. Converting my #ActivityPub posts to #GeoJSON was pretty straightforward.
Here's what a map of my recent check-in activity looks like:
OK, if you'd like to play about with a *very* basic front-end for my Fediverse-location-foursquare-check-in thing, please visit:
SUPER bare-bones. Just a proof of concept.
@Edent haha! This is so cool! This pic raised a proper belly laugh when it showed up on my phone.
Bravo! 👏👏👏👏
Here's my blog post about building a personal #Fediverse server in #PHP.
https://shkspr.mobi/blog/2024/02/a-tiny-incomplete-single-user-write-only-activitypub-server-in-php/
It was surprisingly simple. You can *publish* #ActivityPub with very modest computing resources.
If you can see the geotags on @edent_location please send me a screenshot 🙂
@Edent @edent_location Howdy. I'm writing an ActivityPub C2S client web app, so I used your location notes to prototype a tag in my UI. Here's what it currently looks like. (Not sure I like showing the co-ordinates - I may hide them in future. Also, the tag is a clickable link that goes to `https://www.openstreetmap.org/?mlat=${latitude}&mlon=${longitude}#map=19/${latitude}/${longitude}`)
@Edent @edent_location This is such a cool project! 👏 I am sure the #OpenStreetMap and #Mapstodon folks are interested in your location sharing project and it could spark more ideas for geo-related use-cases built on top of ActivityPub 🎉
Well, my personal #ActivityPub server seems to mostly work!
I wonder if I could move @openbenches from a bot account onto its own server?
Do you prefer post-only bots (which can't reply to you) to be on a bigger instance or run from their own server?
@Edent @openbenches my instinct is that bots would definitely benefit from the "authentication" benefits of being on the same domain as they claim to bot for, if that makes sense.
(i.e. if the openbenches bot is on an openbenches.org server, there's not doubt it's the legit bot)
@Edent I'm quite happy it just being a bot, what benefits would there be for running it on its own server?
@okwithmydecay decentralisation. Not taking up resources on someone else's site. To prove it can be done.
That's about it, really.
@OpinionatedGeek @edent_location
Wow! Thanks!
@mattround it me!
@Edent no joke, is was publicly wishing this existed, and the Internet (well… you in this case) delivered. Sweet!
@mrchrisadams wooo!
Like I say, super bare bones at the moment. Code is open if you want to run your own version.
In an ideal world, this wouldn't be a separate service but native to Mastodon.