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.

Examples

Example 1

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/Q0dXa9loEf0",
  "published": "2025-01-24T08:35:18Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/6jbtmZVcNKs",
    "published": "2025-01-24T08:35:18Z",
    "content": "text",
    "tag": [
      {
        "type": "Hashtag",
        "name": "#test"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 2

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/sxZtyI7tysc",
  "published": "2025-01-24T08:35:30Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/imTZ9r14WIo",
    "published": "2025-01-24T08:35:30Z",
    "content": "text",
    "tag": [
      {
        "type": "Hashtag",
        "name": "nohash"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 3

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/59qeJmdsIpw",
  "published": "2025-01-24T08:35:42Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/D2ItZyBxyUI",
    "published": "2025-01-24T08:35:42Z",
    "content": "text",
    "tag": [
      {
        "type": "Hashtag",
        "name": "#with-dash_under"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 4

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/yp7zvsyT9e4",
  "published": "2025-01-24T08:35:53Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/oPC4kwsOxtw",
    "published": "2025-01-24T08:35:53Z",
    "content": "text",
    "tag": [
      {
        "type": "Hashtag",
        "name": "#with white space"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 5

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/NAMvGk0Sw6M",
  "published": "2025-01-24T08:36:05Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/_Q055jb5PS0",
    "published": "2025-01-24T08:36:05Z",
    "content": "text",
    "tag": [
      {
        "type": "Hashtag",
        "name": "#with(subtag)"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 6

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/2B_2h3L_lGg",
  "published": "2025-01-24T08:36:17Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/HayIcnhFcoY",
    "published": "2025-01-24T08:36:17Z",
    "content": "text",
    "tag": [
      {
        "type": "Hashtag",
        "name": "#with123"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 7

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/KdiQ0hn4sFQ",
  "published": "2025-01-24T08:36:29Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/1hKlySPfjvw",
    "published": "2025-01-24T08:36:29Z",
    "content": "text",
    "tag": [
      {
        "type": "Hashtag",
        "name": "#1234"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 8

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/KCs5ZxjU1Ko",
  "published": "2025-01-24T08:36:41Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/zGjO5FZ2yYs",
    "published": "2025-01-24T08:36:41Z",
    "content": "text",
    "tag": [
      {
        "type": "Hashtag",
        "name": "#CamelCase"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 9

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/GGAhs7NLfd0",
  "published": "2025-01-24T08:36:53Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/WutErN2RSlY",
    "published": "2025-01-24T08:36:53Z",
    "content": "text",
    "tag": [
      {
        "type": "Hashtag",
        "name": "#\u00fcml\u00e4\u00fct\u00df"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 10

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/0ptZhFn-vk8",
  "published": "2025-01-24T08:37:05Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/H-ElIdURCzc",
    "published": "2025-01-24T08:37:05Z",
    "content": "text",
    "tag": [
      {
        "type": "Hashtag",
        "name": "#\ud83d\udc04"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 11

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/rDs3C-K6A7U",
  "published": "2025-01-24T08:37:17Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/b1-E5mvZ5z4",
    "published": "2025-01-24T08:37:17Z",
    "content": "text",
    "tag": [
      {
        "type": "Hashtag",
        "name": "#\u2764\ufe0f"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 12

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/Y2b8Gt7PfNg",
  "published": "2025-01-24T08:37:29Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/BOUWndVyiNY",
    "published": "2025-01-24T08:37:29Z",
    "content": "text",
    "tag": [
      {
        "type": "Hashtag",
        "name": "#\u725b"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 13

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/0JRPI2roiKU",
  "published": "2025-01-24T08:37:41Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/APrdUVwyb_o",
    "published": "2025-01-24T08:37:41Z",
    "content": "text",
    "tag": [
      {
        "type": "Hashtag",
        "name": "#test",
        "url": "https://ignore.example"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 14

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/1B9xISw7G3c",
  "published": "2025-01-24T08:37:53Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/Z3Wk1DBH0Sc",
    "published": "2025-01-24T08:37:53Z",
    "content": "text",
    "tag": [
      {
        "type": "as:Hashtag",
        "name": "#test"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}

Example 15

activity
{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive"
    }
  ],
  "type": "Create",
  "actor": "http://pasture-one-actor/actor",
  "to": [
    "https://www.w3.org/ns/activitystreams#Public",
    "http://hollo/@john"
  ],
  "id": "http://pasture-one-actor/actor/1X4zwK_lQ_4",
  "published": "2025-01-24T08:38:05Z",
  "object": {
    "type": "Note",
    "attributedTo": "http://pasture-one-actor/actor",
    "to": [
      "https://www.w3.org/ns/activitystreams#Public",
      "http://hollo/@john"
    ],
    "id": "http://pasture-one-actor/actor/tybIoI_nxd4",
    "published": "2025-01-24T08:38:05Z",
    "content": "text",
    "tag": [
      {
        "name": "#test"
      },
      {
        "type": "Mention",
        "href": "http://gotosocial/users/cookie"
      }
    ]
  }
}