Skip to content

Fix mutliple hashtag behavior#15

Open
pvorangecrush wants to merge 1 commit intomattn:mainfrom
pvorangecrush:fix_multiple_hashtags
Open

Fix mutliple hashtag behavior#15
pvorangecrush wants to merge 1 commit intomattn:mainfrom
pvorangecrush:fix_multiple_hashtags

Conversation

@pvorangecrush
Copy link

Create a unique ["t", "hashtag"] event for each parsed hashtag. This is necessary for hashtag event to be parsed by clients. In the prior state, only the first hash tag is parsed by client.

Create a unique ["t", "hashtag"] for each hashtag. This is necessary for appropriate hashtag parsing by https://nostrudel.ninja.
}
for _, entry := range extractTags(ev.Content) {
ev.Tags = ev.Tags.AppendUnique(nostr.Tag{"t", entry.text})
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry my delay. Could you please go fmt ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants