No need to export Tag element
This commit is contained in:
parent
182198fb24
commit
387f3210fa
@ -64,7 +64,7 @@ type PostJson struct {
|
|||||||
Published time.Time `json:"published"`
|
Published time.Time `json:"published"`
|
||||||
Source string `json:"source"`
|
Source string `json:"source"`
|
||||||
Summary string `json:"summary"`
|
Summary string `json:"summary"`
|
||||||
Tag []TagType `json:"tag"`
|
tag []TagType `json:"tag"`
|
||||||
To []string `json:"to"`
|
To []string `json:"to"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ func check_activity(uri string) {
|
|||||||
activityjson.normalized = spaceReg.ReplaceAllString(activityjson.normalized, " ")
|
activityjson.normalized = spaceReg.ReplaceAllString(activityjson.normalized, " ")
|
||||||
|
|
||||||
var hashtags []string
|
var hashtags []string
|
||||||
for _, tag := range activityjson.Tag {
|
for _, tag := range activityjson.tag {
|
||||||
if tag.Type == "Hashtag" {
|
if tag.Type == "Hashtag" {
|
||||||
hashtags = append(hashtags, strings.ToLower(tag.Name))
|
hashtags = append(hashtags, strings.ToLower(tag.Name))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user