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/xVYZfeFzSHo",
  "published": "2025-03-07T11:42:22Z",
  "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/iXffFT08Umo",
  "published": "2025-03-07T11:42:22Z",
  "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/-DzCjLKbOqA",
  "published": "2025-03-07T11:42:22Z",
  "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/okZ7-YS8cmY",
  "published": "2025-03-07T11:42:22Z",
  "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/5_rHy_hWQ3M",
  "published": "2025-03-07T11:42:22Z",
  "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/mYfr0VD95Lg",
  "published": "2025-03-07T11:42:22Z",
  "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/uWHdn8eOPEE",
  "published": "2025-03-07T11:42:22Z",
  "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/FqmgLCaxFh4",
  "published": "2025-03-07T11:42:22Z",
  "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/zX9Nxbs8wiE",
  "published": "2025-03-07T11:42:22Z",
  "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/rn8aPXjuKJU",
  "published": "2025-03-07T11:42:22Z",
  "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/mGCmkfFBpGA",
  "published": "2025-03-07T11:42:22Z",
  "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/7sL_AJVY_zI",
  "published": "2025-03-07T11:42:22Z",
  "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/TT0usOAYLiU",
  "published": "2025-03-07T11:42:22Z",
  "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/tWsxfZ-rqfg",
  "published": "2025-03-07T11:42:22Z",
  "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/OpfpxOtpN4U",
  "published": "2025-03-07T11:42:22Z",
  "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/wpBW2vcH2WI",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/aEU0-R0U9W4",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#test",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/y054UFdel6o",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/l7W_egNVIJI",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "nohash",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/6spkOYq5PCc",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/L50R7NElTAM",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#with-dash_under",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/6J4HS1IP8S0",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/7CdWknvcpLI",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#with white space",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/nWan5nTIjQM",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/wzL1ROJP84w",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#with(subtag)",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/t7t2aEtnIsA",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/wIAtNQaOOM4",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#with123",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/_i2uBvntuG8",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/YgWiPdTeJeo",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#1234",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/aijvMaaRwdM",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/GnEo0Q4ioH0",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#CamelCase",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/r5mxl1-SCh4",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/C94hYcfufsU",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#\u00fcml\u00e4\u00fct\u00df",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/ceIy3CX76Jg",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/X7-NwvJpWjs",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#\ud83d\udc04",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/m2c6bnIuhE0",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/wXpvwfDbEjA",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#\u2764\ufe0f",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/KzFYfsxrbdM",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/Zq5DHJIYJSA",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#\u725b",
      "type": "Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/3B35LsKHH-Q",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/ybs1cEr18Yg",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#test",
      "type": "Hashtag",
      "url": "https://ignore.example"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/KO7P8oMnewE",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/6vJqDbsLD1A",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#test",
      "type": "as:Hashtag"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "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/0hPWjKZI7wo",
  "object": {
    "attributedTo": "http://actor.example",
    "content": "text",
    "id": "http://actor.example/tzq7NQbjd9I",
    "published": "2025-03-07T11:42:22Z",
    "tag": {
      "name": "#test"
    },
    "to": [
      "as:Public",
      "http://remote.example/"
    ],
    "type": "Note"
  },
  "published": "2025-03-07T11:42:22Z",
  "to": [
    "http://remote.example/",
    "as:Public"
  ],
  "type": "Create"
}