As a fediverse user, I would like to share posts that show my presence at a location.
These notes are collected to support discussion during the upcoming FediForum Sep 12-14, 2024
Location sharing vocabularies already exist in ActivityPub as Place objects and Geo-Social Events with Activity Types arrive Arrive, Leave, and Travel .
It might be possible to extend wordpress-activitypub plugin to support place and location activities in wp post types.
This continues discussion from 2023 FediForum – Session: Physical Location in Fediverse data model and open mastodon issue #29002
Previously indieweb.org/location , geosocial networking, ( for profit: swarm/foursquare, gowalla, dodgeball )
As an example, Pixelfed allows including a place from a set list of cities.
"location": {
"type": "Place",
"name": "Los Angeles",
"longitude": "-118.243680",
"latitude": "34.052230",
"country": "USA"
}
WordPress Notes
I will be at WordCamp US 2024 on September 17 for contributor day working on this integration.
- org/plugins
- micropub – github – indyweb
- wordpress-activitypub – github – automattic
- webmention – github – pfefferle
- simple-location – github – dshanske / gwg
- gwg has added significant additional functionality since the plugin was named “simple”
- Access metadata via helper functions at includes/data-functions.php
- travelers-map – github – verriercamille
- enable-mastodon-apps – github – akirk
- friends – github – akirk
- WordPress ActivityPub plugin
- Inspired by ActivityPhp – e.g. Arrive Activity
filter “activitypub_transformer” in transformer/class-factory.php
* // Filter be object type
* add_filter( 'activitypub_transformer', function( $transformer, $object, $object_class ) {
* if ( $object->post_type === 'event' ) {
* return new My_Event_Transformer( $object );
* }
* return $transformer;
* }, 10, 3 )
class-base-object.php:
$array = \apply_filters( 'activitypub_activity_object_array', $array, $class, $this->id, $this );
$array = \apply_filters( "activitypub_activity_{$class}_object_array", $array, $this->id, $this );
- Demos
- ActivityPub Plugin Demo m. Matthias Pfefferle
- Das Verborgene Potential von WordPress! | m. Matthias Pfefferle
- Hosting workarounds for webfinger on Flywheel
- SUCCESSFUL Adventures in setting up ActivityPub + Webfinger on a Flywheel-hosted WordPress site
- Successfully repeated with Andrew from Flywheel support.
- Example urls on localhost
- Add ?activitypub query string to author, blog, single pages.
- http://localhost:8080/wp-json/activitypub/1.0/webfinger?resource=acct:mike@localhost
- http://localhost:8080/example-activitypub-post/?activitypub
- http://localhost:8080/index.php/author/mike/?activitypub
- http://localhost:8080/index.php/wp-json/activitypub/1.0/actors/1/outbox
Fedi Notes
Current Support:
- Träwelling – CheckIn Service for transit
- Pixelfed – Add Location – Pre-set list of cities
- Friendica – Lat / Long ?
- Honk – Lat / Long rendered in reading
- fediversity.site / Y Documentation – Location Services / streams
Fedi Development
- Fediverse
- https://browser.pub/ – A browser for exploring ActivityPub and the ⁂fediverse
- OpenStreetMap Overpass API for place data
- delightful-activitypub-development – A curated list of developer resources related to ActivityPub and the Fediverse.
Example Use
- https://location.edent.tel/.well-known/webfinger
- https://location.edent.tel/edent_location
- https://location.edent.tel/outbox
- https://location.edent.tel/posts/65db908e-5330-de2d-9b0d-07e1651547f3.json
"location": {
"name": "Palladium Box Office",
"type": "Place",
"longitude": "-0.1404904",
"latitude": "51.5144945"
},
Previously:
January 2024
– github/mastodon – Display embedded GeoTags #29002
– FourSquare / Swarm for fediverse demo by Terence Eden @[email protected] including a minimum viable Mastodon broadcast with check-in support
October 2023 – Mapping blog posts ( ap )- @[email protected] – WordPress Travelers’ Map plugin
September 2023 – FediForum – Session: Physical Location in Fediverse data model
January 2023
– FourSquare / Swarm @[email protected] , @[email protected] .
– github/mastodon – Add a location under a toot #22963
2018 – WordPress Pterotype plugin
2016 – GeoTag toggle #281 – github/mastodo
2012 – indieweb.org/location
Mapping Notes
- Meridian – OpenStreetMap-based places database and API. Point of Interest reverse geo-coding and osm contribution tool