Skip to content

Hashtags

The following mostly illustrates how the name of a hashtag gets transformed by the applications. The input has the form

"tag": {"type": "Hashtag", "name": "${tag}"}

The last two examples illustrate more technical behavior.

Objects

Object 1

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/M1G3TzzeLcU",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#test",
    "type": "Hashtag"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 2

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/JLc2sEHSoYY",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "nohash",
    "type": "Hashtag"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 3

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/jG1lv6wTzwU",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#with-dash_under",
    "type": "Hashtag"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 4

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/vPTlFLBzgfU",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#with white space",
    "type": "Hashtag"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 5

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/nV0Rs7UbA8E",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#with(subtag)",
    "type": "Hashtag"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 6

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/SwM3G4XKgLA",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#with123",
    "type": "Hashtag"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 7

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/oNNUe7Ea5Nk",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#1234",
    "type": "Hashtag"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 8

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/dbi0lhdhdIg",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#CamelCase",
    "type": "Hashtag"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 9

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/B3I01ie-zkc",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#\u00fcml\u00e4\u00fct\u00df",
    "type": "Hashtag"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 10

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/hYU_CGHoKu4",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#\ud83d\udc04",
    "type": "Hashtag"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 11

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/0yimPXqDjvk",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#\u2764\ufe0f",
    "type": "Hashtag"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 12

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/xJZggAfZNAM",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#\u725b",
    "type": "Hashtag"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 13

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/0qdDYfi3ktA",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#test",
    "type": "Hashtag",
    "url": "https://ignore.example"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 14

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/n4KGpqbAGP4",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#test",
    "type": "as:Hashtag"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Object 15

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "attributedTo": "http://actor.example",
  "content": "text",
  "id": "http://actor.example/yVc6Wi2OFOc",
  "published": "2024-11-22T15:02:51Z",
  "tag": {
    "name": "#test"
  },
  "to": [
    "as:Public"
  ],
  "type": "Note"
}

Activities

Activity 1

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/D0yOsHhQn8A",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/sogw3Im6dCI",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#test",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 2

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/s9DeWcF-16k",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/9IZ5VnyhQA4",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "nohash",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 3

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/M_UZ4MhmheM",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/bXrRkM1fy0E",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#with-dash_under",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 4

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/dO8WQo4aKCE",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/MdyVT5UETmA",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#with white space",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 5

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/XVnwEZSXe8I",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/bzqMnwcYsk8",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#with(subtag)",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 6

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/VexIJf0WCZE",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/nquWihmpmIU",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#with123",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 7

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/SgKD7A2l7xk",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/Ye_BjJY0XMA",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#1234",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 8

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/lxlwsiS7Auc",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/zvPJd08twJY",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#CamelCase",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 9

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/FWaDZywYl7U",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/OJcpvd3tSZs",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#\u00fcml\u00e4\u00fct\u00df",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 10

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/-BPquA6giW0",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/PqKN5WnH69Q",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#\ud83d\udc04",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 11

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/rSR1g9C6u9U",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/p8esUhqPMwU",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#\u2764\ufe0f",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 12

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/2mJEa8btb80",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/IOuJLMaY5N8",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#\u725b",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 13

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/4zntS9qOXUQ",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/FHe1HoayCEQ",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#test",
      "type": "Hashtag",
      "url": "https://ignore.example"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 14

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/WQNkZ7j0cDI",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/pWCBX-YydBY",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#test",
      "type": "as:Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}

Activity 15

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "actor": "http://actor.example",
  "id": "http://actor.example/lx6d-2Aiq90",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/KPdVG0RsoMQ",
    "published": "2024-11-22T15:02:51Z",
    "tag": {
      "name": "#test"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2024-11-22T15:02:51Z",
  "to": [
    "as:Public",
    "http://remote.example/"
  ],
  "type": "Create"
}