# Partially embedded objects

**URL:** <https://socialhub.activitypub.rocks/t/partially-embedded-objects/4450>\
**Category:** ActivityPub\
**Created:** [August 12, 2024, 11:06am UTC](https://socialhub.activitypub.rocks/t/partially-embedded-objects/4450 "2024-08-12T11:06:40Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![helge](https://socialhub.activitypub.rocks/user_avatar/socialhub.activitypub.rocks/helge/32/1938_2.png) [@helge](https://socialhub.activitypub.rocks/u/helge)\
**Post date:** [December 30, 2024, 8:02am UTC](https://socialhub.activitypub.rocks/t/partially-embedded-objects/4450/7 "2024-12-30T08:02:18Z")

</div>

> [@silverpill](#):
>
> The mechanism of partial embeddings can be useful, but it is currently underspecified. How consuming implementation can tell if the object is full or abbreviated? I think it can be done using a new property, `partial`.

I would not call the usages here as partial embedding, but as a reference. So I would suggest using something like:

```auto
{
  "id": "https://social.example/announce",
  "type": "Announce",
  "object": {
    "type": "Reference",
    "referredId": "https://social.example/like",
    "referredType": "Like"
  }
}

```

This also allows me to claim that the rule

```auto
type => how to parse

```

remains true. With partial one would be back to having to distinguish two cases on how to parse everything (horrible).

Unfortunately, even with reference the above rule would still be wrong for stuff like `Accept` and `Undo`, but at least it’s enough to investigate the object and its `referredType`. That’s why I still have a preference for `Unfollow` and `RejectReply`.

---

_[View the full topic](https://socialhub.activitypub.rocks/t/partially-embedded-objects/4450)._
