Add in-reply-to to item

This commit is contained in:
Peter Stuifzand 2018-05-03 07:26:15 +02:00
parent 2f3c486651
commit 7fe800f0f9

View File

@ -282,6 +282,7 @@ func mapToItem(result map[string]interface{}) microsub.Item {
if value, e := result["in-reply-to"]; e {
if replyTo, ok := value.(string); ok {
item.InReplyTo = append(item.InReplyTo, replyTo)
} else if replyTo, ok := value.([]interface{}); ok {
for _, v := range value.([]interface{}) {
if replyTo, ok := v.(string); ok {