Quick question: would it be okay to embed a collection object in the `as:replies` property of `as:Note` & `as:Article` objects instead of putting the URL to the collection in the `as:replies` property? In theory, it would be okay, but would the actual ...
-
Quick question: would it be okay to embed a collection object in the `as:replies` property of `as:Note` & `as:Article` objects instead of putting the URL to the collection in the `as:replies` property? In theory, it would be okay, but would the actual implementations handle it well?
-
洪 民憙 (Hong Minhee)replied to 洪 民憙 (Hong Minhee) last edited by
One of the benefits of #Fedify is that you don't have to worry about whether a property of an Activity Vocabulary object has a URL or embeds an actual object. If you need an object, you can call the `getObject()` method (which will fetch a remote object if necessary). If you need a URI, you can access the `objectId` property.
Vocabulary | Fedify
The Activity Vocabulary is a collection of type-safe objects that represent the Activity Vocabulary and the vendor-specific extensions. This section explains the key features of the objects.
(fedify.dev)
-
silverpillreplied to 洪 民憙 (Hong Minhee) last edited by
@hongminhee It is okay to embed this collection, for example Mastodon does that.
-
洪 民憙 (Hong Minhee)replied to silverpill last edited by
@silverpill Oh, that's good to know! Thanks!