No need to export Tag element

This commit is contained in:
Farhan Khan 2021-12-15 19:38:58 -05:00
parent 182198fb24
commit 387f3210fa

View File

@ -64,7 +64,7 @@ type PostJson struct {
Published time.Time `json:"published"`
Source string `json:"source"`
Summary string `json:"summary"`
Tag []TagType `json:"tag"`
tag []TagType `json:"tag"`
To []string `json:"to"`
Type string `json:"type"`
@ -150,7 +150,7 @@ func check_activity(uri string) {
activityjson.normalized = spaceReg.ReplaceAllString(activityjson.normalized, " ")
var hashtags []string
for _, tag := range activityjson.Tag {
for _, tag := range activityjson.tag {
if tag.Type == "Hashtag" {
hashtags = append(hashtags, strings.ToLower(tag.Name))
}