Associated Type: Tag

Activity Vocabulary: tag

Hashtag

PropertyBase SpecRequiredDescriptionRestrictions
nameActivity Vocabulary 2.0YESThe text of the tag

Example

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Note",
  "content": "I love the #dsnp spec!",
  "mediaType": "text/plain",
  "tag": [
    {
      "name": "#dsnp"
    }
  ],
  "published": "1970-01-01T00:00:00+00:00"
}

Mention

PropertyBase SpecRequiredDescriptionRestrictions
nameActivity Vocabulary 2.0noThe text of the tag
typeActivity Vocabulary 2.0YESIdentifies the tag as type MentionMUST be Mention
idActivity Vocabulary 2.0YESLink to the user mentionedMUST be a DSNP User URI

Example

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": "Note",
  "content": "@sally should check out the #dsnp spec!",
  "mediaType": "text/plain",
  "tag": [
    {
      "name": "#dsnp"
    },
    {
      "name": "@sally",
      "type": "Mention",
      "id": "dsnp://12345678"
    }
  ],
  "published": "1970-01-01T00:00:00+00:00"
}