ActivityPubを通じた拡張メンション

Here’s what happens.

  1. An activity is received from a remote source.
  2. We store the Activity, Actor and Object separately in the database (“AP Objects”)
  3. The AP Objects are associated with their Discourse equivalents, e.g. an Actor gets a User.

In the ActivityPub protocol the real “full Fediverse home address” of an Actor is their id. That is stored in step 2 exactly as its received from the remote source. It doesn’t normally look like @toka@socialhub.activitypub.rocks. That addressing convention, i.e. username@domain.com is derived from the use of Webfinger in the Fediverse, and, while we support and use Webfinger, it is not part of the ActivityPub protocol itself.

In short, we’ll likely be adding support for mentions in the way you’re expecting in the medium term. There will be many issues and edge cases to be figured out in that integration. Discourse mentions are a rich, and Discourse-specific, feature, somewhat different from mentions you’re used to in Mastodon. Nevertheless, I’m confident we can find a way to make them work. Please be patient on that front.

以下がその仕組みです。

  1. リモートソースからアクティビティを受信します。
  2. アクティビティ、アクター、オブジェクトをデータベース(「APオブジェクト」)に個別に保存します。
  3. APオブジェクトを、例えばアクターをユーザーに関連付けるなど、対応するDiscourseの要素と関連付けます。

ActivityPubプロトコルにおいて、アクターの実際の「完全なFediverseのホームアドレス」は、そのidです。これはステップ2で、リモートソースから受信したとおりに正確に保存されます。通常、@toka@socialhub.activitypub.rocksのような形式ではありません。そのアドレス指定規則、つまりusername@domain.comは、FediverseでのWebfingerの使用から派生したものですが、私たちはWebfingerをサポートし使用していますが、ActivityPubプロトコル自体の一部ではありません。

要するに、中期的には、あなたが期待している方法でのメンションのサポートを追加する可能性が高いです。その統合には、解決すべき多くの問題やエッジケースが存在します。Discourseのメンションは、Mastodonで慣れ親しんでいるメンションとはいくぶん異なる、豊かでDiscourse固有の機能です。それにもかかわらず、それらを機能させる方法を見つけられると確信しています。その点については、しばらくお待ちください。

「いいね!」 2