event: accept tags with a single item.

This commit is contained in:
fiatjaf
2024-02-21 09:47:34 -03:00
parent c5f7926471
commit ffe2db7f96

View File

@@ -182,9 +182,8 @@ example:
// tags may also contain extra elements separated with a ";" // tags may also contain extra elements separated with a ";"
tagValues := strings.Split(tagValue, ";") tagValues := strings.Split(tagValue, ";")
tag = append(tag, tagValues...) tag = append(tag, tagValues...)
// ~
tags = tags.AppendUnique(tag)
} }
tags = tags.AppendUnique(tag)
} }
for _, etag := range c.StringSlice("e") { for _, etag := range c.StringSlice("e") {