Fix attachments being omitted from postback (#1557)
This commit is contained in:
parent
954ed45009
commit
c911aeb20e
1 changed files with 1 additions and 0 deletions
|
@ -129,6 +129,7 @@ func (p *Postback) Push(m models.Message) error {
|
||||||
copy(a.Content, f.Content)
|
copy(a.Content, f.Content)
|
||||||
files = append(files, a)
|
files = append(files, a)
|
||||||
}
|
}
|
||||||
|
pb.Attachments = files
|
||||||
}
|
}
|
||||||
|
|
||||||
b, err := pb.MarshalJSON()
|
b, err := pb.MarshalJSON()
|
||||||
|
|
Loading…
Reference in a new issue