somehow sunglocto returned
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
"gosrc.io/xmpp/stanza"
|
||||
)
|
||||
|
||||
type LinkPreview struct {
|
||||
stanza.MsgExtension
|
||||
XMLName xml.Name `xml:"http://www.w3.org/1999/02/22-rdf-syntax-ns# Description"`
|
||||
About string `xml:"https://ogp.me/ns#,attr"`
|
||||
Title string `xml:"https://ogp.me/ns# title"`
|
||||
Description string `xml:"https://ogp.me/ns# description"`
|
||||
Image string `xml:"https://ogp.me/ns# image"`
|
||||
URL string `xml:"https://ogp.me/ns# url"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
stanza.TypeRegistry.MapExtension(stanza.PKTMessage, xml.Name{Space: "http://www.w3.org/1999/02/22-rdf-syntax-ns#", Local: "Description"}, LinkPreview{})
|
||||
}
|
||||
Reference in New Issue
Block a user