All non-english hashtags are not added in 't' while creating a new note #556

Closed
opened 2023-05-14 19:23:46 +00:00 by vivganes · 0 comments
Contributor

Describe the bug
When creating a note with non-english hashtags, they are not properly added to 't' tag of the new event.

To Reproduce
Steps to reproduce the behavior:

Look at the event json of note1qgd0fj8mzmgpzqr9e495nn2uaj40vvum3tu5juqmnnsqu5thlc7qp5q9d0 created using snort

{
  "content": "Testing international hashtags. Please ignore.\n\n#ಕನ್ನಡ is in Kannada\n#தமிழ் is in Tamil\n#сообщество is in Russian\n#漫画 is in Japanese\n#समाज is in Hindi\n\n\n",
  "created_at": 1684051734,
  "id": "021af4c8fb16d0110065cd4b49cd5cecaaf6339b8af949701b9ce00e5177fe3c",
  "kind": 1,
  "pubkey": "facdaf1ce758bdf04cdf1a1fa32a3564a608d4abc2481a286ffc178f86953ef0",
  "sig": "8f9d3bf528503fb4386bb8127ec5906ccf69f43faa25e18027335ebb39c8dce82b6872c2ce4f81f2fa92971044eb10d9638ff74d3e9c8094115b98d465269274",
  "tags": [
    [
      "t",
      "ಕನ್ನಡ"
    ]
  ]
}

Note that there is only one 't' tag whereas 5 are expected
Expected behavior
All Non-english hashtags need to be recorded as 't' tag

Note
I am preparing a PR to fix this. Will submit soon

**Describe the bug** When creating a note with non-english hashtags, they are not properly added to 't' tag of the new event. **To Reproduce** Steps to reproduce the behavior: Look at the event json of `note1qgd0fj8mzmgpzqr9e495nn2uaj40vvum3tu5juqmnnsqu5thlc7qp5q9d0` created using snort ```json { "content": "Testing international hashtags. Please ignore.\n\n#ಕನ್ನಡ is in Kannada\n#தமிழ் is in Tamil\n#сообщество is in Russian\n#漫画 is in Japanese\n#समाज is in Hindi\n\n\n", "created_at": 1684051734, "id": "021af4c8fb16d0110065cd4b49cd5cecaaf6339b8af949701b9ce00e5177fe3c", "kind": 1, "pubkey": "facdaf1ce758bdf04cdf1a1fa32a3564a608d4abc2481a286ffc178f86953ef0", "sig": "8f9d3bf528503fb4386bb8127ec5906ccf69f43faa25e18027335ebb39c8dce82b6872c2ce4f81f2fa92971044eb10d9638ff74d3e9c8094115b98d465269274", "tags": [ [ "t", "ಕನ್ನಡ" ] ] } ``` Note that there is only one 't' tag whereas 5 are expected **Expected behavior** All Non-english hashtags need to be recorded as 't' tag **Note** I am preparing a PR to fix this. Will submit soon
Kieran referenced this issue from a commit 2023-05-15 20:35:24 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Kieran/snort#556
No description provided.