Automattic / wordpress-activitypub

ActivityPub for WordPress
https://wordpress.org/plugins/activitypub/
MIT License
480 stars 71 forks source link

Feature Request: Add application to post and reply context #868

Open jeherve opened 3 weeks ago

jeherve commented 3 weeks ago

What

The Mastodon API seems to support an application field, that allows one to pass information about the client used to post the message. Here are some examples:

"application":{"name":"Web","website":null}

-- https://mastodon.social/api/v1/statuses/112989821694410467

"application":{"name":"Ivory for iOS","website":"https://tapbots.com/"}

-- https://mastodon.social/api/v1/statuses/112993223143821397

This information is used by some Fediverse applications to display information about how the message was posted:

image

API Reference: https://docs.joinmastodon.org/entities/Application/

It would be nice if messages posted via the ActivityPub plugin included that information, maybe as a "ActivityPub for WordPress" application?

Why

This would help further promote the ActivityPub plugin and nurture its adoption.

How

No response

mediaformat commented 3 weeks ago

Might be good to make it pluggable too, so that @akirk EMA plugin could hook into

pfefferle commented 3 weeks ago

I think it is the other way around! I would use a filter of EMA to implement it?!?

akirk commented 2 weeks ago

I had researched this in https://github.com/akirk/enable-mastodon-apps/issues/153 and it turns out that the application info is not federated between Mastodon, it is only tracked inside your own Mastodon instance by using an application_id field which refers to an app (see website in the view and in the db model) authenticated at the Mastodon instance, you cannot feed your own data into that.