# FEP-e232: Object Links

**URL:** <https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722>\
**Category:** Fediverse Enhancement Proposals\
**Tags:** fep, final, fep-e232\
**Created:** [November 28, 2022, 4:56pm UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722 "2022-11-28T16:56:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [November 28, 2022, 4:56pm UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/1 "2022-11-28T16:56:18Z")

</div>

Hello!

This is a discussion thread for the proposed [FEP-e232: Object Links](https://codeberg.org/fediverse/fep/src/branch/main/fep/e232/fep-e232.md).  
Please use this thread to discuss the proposed FEP and any potential problems  
or improvements that can be addressed.

**Summary**

This document proposes a way to represent text-based links to [ActivityPub] objects which are similar to mentions. One example of such link is inline quote within the value of the `content` property, but this proposal is not limited to any particular use case.

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [August 5, 2022, 8:14pm UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/2 "2022-08-05T20:14:55Z")

</div>

> **[FEP-e232: Object Links](https://codeberg.org/fediverse/fep/pulls/13)**
>
> This is a FEP for object links, inspired by the \[discussion at the Misskey issue tracker\](https://github.com/misskey-dev/misskey/issues/8722).

Hello!

FEP-e232 is a proposal for representing text-based links to ActivityPub objects using tags. The immediate goal is standardization of [quotes](https://socialhub.activitypub.rocks/t/repost-share-with-quote-a-k-a-attach-someone-elses-post-to-your-own-post/659/) (related issues: [Misskey](https://github.com/misskey-dev/misskey/issues/8722), [Pleroma](https://git.pleroma.social/pleroma/pleroma/-/issues/2783), [Mastodon](https://github.com/mastodon/mastodon/issues/18473)), but in the future this specification can be re-used for other kinds of cross-references (e.g. in federated wikis).

---

<div class="post-metadata">

**Author:** ![weex](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/weex/32/1434_2.png) [@weex](https://socialhub.activitypub.rocks/u/weex)\
**Post date:** [August 13, 2022, 12:48am UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/3 "2022-08-13T00:48:48Z")

</div>

Thank you @silverpill for this proposal. For convenience in getting the word out and generating discussion, [here’s a post you can reshare](https://c4.social/@weex/108805929731449688).

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [August 16, 2022, 10:50am UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/4 "2022-08-16T10:50:44Z")

</div>

The draft has been reviewed, and several minor changes were made.  
There’s also a [proposal](https://codeberg.org/fediverse/fep/pulls/13/files#issuecomment-601727) to use `rel` attribute instead of `mediaType` to differentiate object links from other types of links:

```json
{
    "type": "Note",
    "content: "This is a quote:<br>RE: https://example.com/objects/123",
    "tag": [
        {
            "type": "Link",
            "rel": "https://www.w3.org/ns/activitystreams",
            "href": "https://example.com/objects/123",
            "name": "RE: https://example.com/objects/123"
        }
    ]
}

```

If there are no objections, this change will be accepted into the draft as well.

---

<div class="post-metadata">

**Author:** ![macgirvin](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/m/82dd89/32.png) [@macgirvin](https://socialhub.activitypub.rocks/u/macgirvin)\
**Post date:** [August 17, 2022, 10:06pm UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/5 "2022-08-17T22:06:22Z")

</div>

I think there is a problem of the rel registry. My original implementation of this (before the FEP was created) used both ‘via’ and ‘cite-as’. Neither is a perfect match but are the closest existing rel attributes I could find. If an unregistered url is a legal rel value and/or if it’s submitted to the ietf I’m quite happy to go with that.

---

<div class="post-metadata">

**Author:** ![trwnh](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/trwnh/32/262_2.png) [@trwnh](https://socialhub.activitypub.rocks/u/trwnh)\
**Post date:** [August 17, 2022, 11:24pm UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/6 "2022-08-17T23:24:41Z")

</div>

My understanding is that you only have to register simple keyword values (i.e. one might register `activitystreams`); if not registered, it MUST be a URL to indicate that it is an extension: [RFC 8288: Web Linking](https://www.rfc-editor.org/rfc/rfc8288.html#section-2.1.2)

> Applications that don’t wish to register a relation type can use an extension relation type, which is a URI [[RFC3986](https://www.rfc-editor.org/rfc/rfc3986)] that uniquely identifies the relation type. […] The URI used for an extension relation type SHOULD be under the control of the person or party defining it or be delegated to them. […] When extension relation types are compared, they MUST be compared as strings (after converting to URIs if serialised in a different format) in a case-insensitive fashion, character by character. Because of this, all-lowercase URIs SHOULD be used for extension relations.

* * *

Tangentially, it should be mentioned in this thread that the points of consideration on using `rel` vs `mediaType` is as follows:

- `rel` is unambiguously the ActivityStreams namespace, whereas `mediaType` could equally be either `application/activity+json` or `application/ld+json; profile="https://www.w3.org/ns/activitystreams"`.
  - If it is acceptable to have two possible values, then this isn’t a concern.

- `mediaType` is semantically more clear, but it specifically indicates what might be _returned_, rather than providing instructions on how to fetch. In other words, the presence of `mediaType` does not imply that you should specify a header of `Accept: <mediaType>` when fetching.
  - If it is acceptable to have the only implication be this FEP, then this is less of a concern.

If these two concerns are deemed to not be worthwhile, I have no problem with using `mediaType` and dropping the proposed change.

---

<div class="post-metadata">

**Author:** ![macgirvin](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/m/82dd89/32.png) [@macgirvin](https://socialhub.activitypub.rocks/u/macgirvin)\
**Post date:** [August 18, 2022, 12:54am UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/7 "2022-08-18T00:54:15Z")

</div>

I’m all for having a link relation. And thanks for clarifying the URI is allowed - I’m happy with the proposed changes.

I’m probably the only person who might use a different mediaType so I appreciate the consideration, but I have no desire to die on that hill either. As long as there’s a ‘rel’ attribute we’ll always check to see if the mediaType is something we can work with, and/or keep looking to see if there’s a better one for our needs.

---

<div class="post-metadata">

**Author:** ![trwnh](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/trwnh/32/262_2.png) [@trwnh](https://socialhub.activitypub.rocks/u/trwnh)\
**Post date:** [August 18, 2022, 1:50am UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/8 "2022-08-18T01:50:54Z")

</div>

> [@macgirvin](#):
>
> I’m probably the only person who might use a different mediaType so I appreciate the consideration

I’d be interested to know what other `mediaType` values you may use or expect!

I should probably also say, this isn’t a hill for me to die on either – I’m strongly convinced about using `tag` over `attachment` for marking up substrings of `name`/`summary`/`content`, but I could really go either way on `mediaType` vs `rel`. And `mediaType` is technically the “more correct” solution, I suppose; there might be value in software e.g. marking up a Link as `application/magic-envelope+xml` for Diaspora (if fetchable Diaspora resources are even a thing) or otherwise leaving the door open for other vocabularies, so to speak.

Actually, while typing this, I think I might have convinced myself…

---

<div class="post-metadata">

**Author:** ![macgirvin](https://socialhub.activitypub.rocks/letter_avatar_proxy/v4/letter/m/82dd89/32.png) [@macgirvin](https://socialhub.activitypub.rocks/u/macgirvin)\
**Post date:** [August 19, 2022, 8:36pm UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/9 "2022-08-19T20:36:38Z")

</div>

I would probably disagree that mediaType is more correct. The way we usually parse arrays of links of any kind is to start with the link relation to find the “purpose” (is this thing an object we care about?) and then loop on on the mediaType to choose the most appropriate file format for our needs (json, xml, yaml, turtle, jpeg, gif, mp3, mp4, whatever) and finally (if there are still choices to be made) examine specific media attributes such as height, width, duration, etc. to find the most appropriate representation. This is a model and workflow that has served us well since the early days of MIME. Without the link relation, the code to examine these things quickly becomes spaghetti.

---

<div class="post-metadata">

**Author:** ![trwnh](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/trwnh/32/262_2.png) [@trwnh](https://socialhub.activitypub.rocks/u/trwnh)\
**Post date:** [August 19, 2022, 9:58pm UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/10 "2022-08-19T21:58:13Z")

</div>

Ah, okay. For what it’s worth, Misskey’s PR is using code primarily like so:

```json
"tag": [
  {
    "type": "Link",
    "href": "URI",
    "name": "RE: URI",
    "rel": "https://misskey-hub.net/ns#_misskey_quote",
  }
]

```

With the current state of the PR, they also attach `mediaType` like so:

```json
"tag": [
  {
    "type": "Link",
    "href": "URI",
    "name": "RE: URI",
    "rel": "https://misskey-hub.net/ns#_misskey_quote",
    "mediaType": "application/activity+json"
  }
]

```

With the current state of the FEP proposal, it should be like so:

```json
"tag": [
  {
    "type": "Link",
    "href": "URI",
    "name": "RE: URI",
    "rel": "https://misskey-hub.net/ns#_misskey_quote",
    "mediaType": "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""
  }
]

```

With the alternate FEP proposal, it should be like so:

```json
"tag": [
  {
    "type": "Link",
    "href": "URI",
    "name": "RE: URI",
    "rel": ["https://www.w3.org/ns/activitystreams", "https://misskey-hub.net/ns#_misskey_quote"]
  }
]

```

For the purposes of parsing a Misskey quote, it should be enough to check for the \_misskey\_quote URI in the rel array. That covers the _purpose_ of the link:

```python
if "https://misskey-hub.net/ns#_misskey_quote" in rel:
    # treat it like a misskey quote

```

What is a bit of an open question, or rather, what is the point of discussion right now, is how to best signal that a certain media type should be explicitly included in the Accept header. It’s essentially a consequence of HTTP content negotiation.

I’m unsure if `rel` is appropriate; I initially proposed it to remove the ambiguity of multiple potential media types. But I later realized that multiple media types is less of an issue – either you understand the type or you don’t.

Given that the purpose of the FEP is purely to signal that a Link’s href may be fetched as an ActivityPub object, it later made sense to me to go back to `mediaType` rather than `rel`, and keeping `rel` focused on the actual relation between the link and the current resource. So future extensions would use `rel` to signal their purpose similarly to \_misskey\_quote, and the FEP would remain focused on signaling how to fetch the Object given only the Link.

In other words, what I realized is that the FEP’s text should be enough guidance to tell implementations that if they see a `mediaType` for ActivityPub, they should use the Accept header as they are required to do so under the main ActivityPub spec. There is no inherent purpose in object links, and their presence in `tag` basically only gives metadata similar to subtypes like `Mention` or `Hashtag`.

I think some language in the FEP should be added to make this distinction clear, and to encourage purposeful object links to attach a rel-value that signals their purpose.

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [August 22, 2022, 2:10pm UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/11 "2022-08-22T14:10:43Z")

</div>

In the latest revision of the FEP the `mediaType` and `rel` properties have the following descriptions:

- `mediaType` (REQUIRED): the media type MUST be `application/ld+json; profile="https://www.w3.org/ns/activitystreams"`. This specification only deals with ActivityPub objects but in practice the media type can be different and servers MAY accept object links which do not comply with the requirement.
- `rel` (OPTIONAL): if relevant, the `rel` SHOULD specify how the link is related to the current resource. Using `rel` can provide additional purpose to object links by signaling specific intended use-cases.

---

<div class="post-metadata">

**Author:** ![heluecht](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/heluecht/32/195_2.png) [@heluecht](https://socialhub.activitypub.rocks/u/heluecht)\
**Post date:** [September 30, 2022, 7:38am UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/12 "2022-09-30T07:38:09Z")

</div>

I just tested this from Friendica and sent test posts to Friendica, Pleroma and Mastodon. And it seems as if Pleroma has got a problem with this. My tests posts don’t come through. But since I don’t operate a Pleroma server, I cannot say where the problem lies.

---

<div class="post-metadata">

**Author:** ![lanodan](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/lanodan/32/40_2.png) [@lanodan](https://socialhub.activitypub.rocks/u/lanodan)\
**Post date:** [October 9, 2022, 7:54am UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/13 "2022-10-09T07:54:34Z")

</div>

I think overall this is quite un-JSON-LD where typing ends up being shoved into a mostly internal type (like Object, Activity and Actor also are) with just some metadata to try to match things.  
And `mediaType` seems to be treated as something on which you could simply string-match onto, expect MIME doesn’t really works that way so it wouldn’t be a surprise to end up with slightly different representations.  
This quite reminds me how HTML4 ended up with `<div id="content" role="main">`, making parsing stuck to heuristics-based and often dependent on the source.

I think something like a dedicated object type would make more sense, say:

```javascript
{
  "type": "Quote", // Required
  "object": "https://example.org/objects/42", // Required
  "name": "RE: Object Links" // Optional
}

```

And like for `ChatMessage`, it could be added into the LitePub namespace.

> [@heluecht](#):
>
> And it seems as if Pleroma has got a problem with this.

Yeah, the validator is quite (too?) strict, only specific objects are supported inside `tag`.

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [October 9, 2022, 7:00pm UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/14 "2022-10-09T19:00:04Z")

</div>

> [@lanodan](#):
>
> I think something like a dedicated object type would make more sense

`Link` is a general type and I think it’s exactly what we need. Consider the following applications:

1. Wiki

```auto
link to [[article]], link to [[another article]]

```

1. Imageboard

```auto
>>6513 reply to post 
>>6516 another reply

```

1. Issue tracker

```markdown
Bug #13
Merge request #123

```

FEP-e232 can be used in each of these cases, but the type `Quote` doesn’t seem be appropriate here.

> [@lanodan](#):
>
> Yeah, the validator is quite (too?) strict, only specific objects are supported inside `tag`.

I’ve opened an issue: [Allow "Note" to have "Link" tags (#2952) · Issues · Pleroma / pleroma · GitLab](https://git.pleroma.social/pleroma/pleroma/-/issues/2952)

---

<div class="post-metadata">

**Author:** ![trwnh](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/trwnh/32/262_2.png) [@trwnh](https://socialhub.activitypub.rocks/u/trwnh)\
**Post date:** [October 10, 2022, 9:01am UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/15 "2022-10-10T09:01:07Z")

</div>

Echoing what silverpill said: the FEP covers more than just Misskey-style quotes. The `rel` of a Link expresses its purpose by signaling how the linked resource is related to the current resource. This is why the Misskey PR uses `"rel": "https://misskey-hub.net/ns#_misskey_quote"` – this way, Misskey-aware implementations can treat it as a quote, but generic implementations just treat it as a link, except with this FEP they know it’s referring to an ActivityPub object specifically and can add their own special handling (for example, resolving the object locally)

> [@lanodan](#):
>
> And `mediaType` seems to be treated as something on which you could simply string-match onto, expect MIME doesn’t really works that way so it wouldn’t be a surprise to end up with slightly different representations.

`mediaType` is functional so it will be a string; the FEP specifies a specific value that can be matched onto.

Now, sure, it could be `"mediaType": "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""` or it could be `"mediaType": "application/activity+json"`, that much is true. But the former is recommended (and specified) because that is how you MUST fetch objects in ActivityPub.

---

<div class="post-metadata">

**Author:** ![lanodan](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/lanodan/32/40_2.png) [@lanodan](https://socialhub.activitypub.rocks/u/lanodan)\
**Post date:** [October 10, 2022, 9:34am UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/16 "2022-10-10T09:34:53Z")

</div>

[2022-10-09 19:10:09+0000] silverpill via SocialHub:

> > [@lanodan](#):
> >
> > I think something like a dedicated object type would make more sense
> 
> `Link` is a general type and I think it’s exactly what we need. Consider the following applications:  
> [Wiki, Imageboard/email quotes, Issue Tracker]

You’re probably misunderstanding, this isn’t to handle formatting of quotes like your examples are doing, HTML already manages that.

Post quotes (take them as references if you want, “Quote” is more branding than technical here) have protocol implications, typically the backend should try to fetch a quoted post and potentially do things like increasing a “Quotes” counter similarly to Like and Announce.  
Consider that mentions also have their own object type, while if they would be using `Link` + `mediaType` it would have prevented Quotes or at least created a massive heuristics-based mess.  
Potentially similar kind of things for other AP-metadata like hashtags (loose link to a collection of objects).

> > [@lanodan](#):
> >
> > Yeah, the validator is quite (too?) strict, only specific objects are supported inside `tag`.
> 
> I’ve opened an issue: [Allow "Note" to have "Link" tags (#2952) · Issues · Pleroma / pleroma · GitLab](https://git.pleroma.social/pleroma/pleroma/-/issues/2952)

I’m aware and I won’t fix it other than potentially dropping `Link` objects from the `tag` field.

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [October 10, 2022, 4:42pm UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/17 "2022-10-10T16:42:56Z")

</div>

> [@lanodan](#):
>
> Consider that mentions also have their own object type, while if they would be using `Link` + `mediaType` it would have prevented Quotes or at least created a massive heuristics-based mess.  
> Potentially similar kind of things for other AP-metadata like hashtags (loose link to a collection of objects).

FEP-e232 recommends using `rel` attribute to specify the link subtype, so it should be future-proof. But I’m not strongly against using dedicated type. If there’s a better name for a type that other contributors would agree with, I would update the spec.

> [@lanodan](#):
>
> I’m aware and I won’t fix it other than potentially dropping `Link` objects from the `tag` field.

The issue is only about providing forward compatibility. I’m not asking for FEP-e232 support (because the spec is still in a draft stage and may change).

---

<div class="post-metadata">

**Author:** ![trwnh](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/trwnh/32/262_2.png) [@trwnh](https://socialhub.activitypub.rocks/u/trwnh)\
**Post date:** [October 11, 2022, 12:59am UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/18 "2022-10-11T00:59:42Z")

</div>

> [@lanodan](#):
>
> Consider that mentions also have their own object type, while if they would be using `Link` + `mediaType` it would have prevented Quotes or at least created a massive heuristics-based mess.

Not necessarily? A Mention is a sub-type of Link, specifically implying that the linked resource is an Actor. You could totally get away with not having a Mention type, or having a rel=mention if you really cared to add special handling for it. Protocol-wise, the presence of a Mention doesn’t imply anything special aside from _maybe_ affecting the addressing, but the addressing is explicitly defined with `to`/`cc` on activities anyway. “Who to include in a reply” is already a heuristic thing – you might or might not include the person you are replying to, your own followers, the audience property if present on the object, previous recipients in `to`/`cc` on the related activity you received, and so on. Having a Mention linked in `tag` is just one more heuristic, really – and I would argue that’s not even its primary purpose! The primary purpose of a Mention is for implementations to know that `@username` should be linked to `https://domain.tld/users/id` or whatever. Just like a Hashtag links to the url of some collection of posts, or an Emoji links to the url of the image resource that should replace the shortcode. In each of these cases, they inherit from Link and are simply specialized links that imply a microsyntax, the processing of which is optional.

> [@lanodan](#):
>
> typically the backend should try to fetch a quoted post and potentially do things like increasing a “Quotes” counter similarly to Like and Announce.

This is entirely optional and not relevant in all cases. If that is the intention of a “quote”, then yes, a Quote type could be defined as a sub-type of Link, with the expressed semantics and side effects, but that would be better as a separate extension; that extension would effectively replace rel=\_misskey\_quote with the Quote type, and should probably be paired with some `quotes` Collection similar to `likes` and `shares`, sure. If you want to define a `litepub:Quote` type and `litepub:quotes` Collection then go ahead. But for the generic case, all that is needed and defined for this FEP-e232 is that the `type` is Link or a subtype, and that `mediaType` is the ActivityPub content-type. This should be enough for clients to know that they can fetch the resource at `href` using ActivityPub. If you wanted to be specific about the logic, you shouldn’t even be matching against `type`, you should be matching on the presence of `href` and on the value of `mediaType` (since these are properties of Links, and since the type may be an extension you are unaware of!)

> [@lanodan](#):
>
> I won’t fix it other than potentially dropping `Link` objects from the `tag` field.

For robustness, you should probably filter the `tag` array and only keep understood/supported types. Anything not understood should be ignored instead of breaking processing entirely.

---

<div class="post-metadata">

**Author:** ![silverpill](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/silverpill/32/1770_2.png) [@silverpill](https://socialhub.activitypub.rocks/u/silverpill)\
**Post date:** [October 28, 2022, 6:36pm UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/19 "2022-10-28T18:36:49Z")

</div>

I decided to support wiki-like syntax in my application:

```auto
[[https://example.org/objects/1]]

or

[[https://example.org/objects/2|this is my link]]

```

The fist one is rendered as a link with URL as a text and the second one is rendered as a link with “this is my link” text.  
Other instances won’t see this syntax, only the resulting HTML, so I’m wondering what should the `name` attribute of the `Link` tag contain. FEP-e232 states:

> `name` (OPTIONAL): the `name` SHOULD match the microsyntax used in object’s content.

I understand it as if there’s no microsyntax, the `name` attribute can be omitted.

---

<div class="post-metadata">

**Author:** ![trwnh](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/trwnh/32/262_2.png) [@trwnh](https://socialhub.activitypub.rocks/u/trwnh)\
**Post date:** [November 2, 2022, 3:12am UTC](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722/20 "2022-11-02T03:12:11Z")

</div>

possibly, but for best practices you should try to match it to whatever substring of the natural language properties (name, summary, content) it ends up being in plain-text.

in example 1, i’d say `name = "https://example.org/objects/1"` and in example 2, i’d say `name = "this is my link"`.

[Next page](https://socialhub.activitypub.rocks/t/fep-e232-object-links/2722.md?page=2)
