Archived
1
0
This commit is contained in:
Jeff Becker 2019-03-02 11:17:15 -05:00
parent 794e2350cd
commit 4ae08d2c11
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -427,7 +427,7 @@ func PostModelFromMessage(prefix string, nntp NNTPMessage) PostModel {
p.addr = nntp.Addr() p.addr = nntp.Addr()
p.sage = nntp.Sage() p.sage = nntp.Sage()
p.Key = nntp.Pubkey() p.Key = nntp.Pubkey()
p.ReferencedURI = nntp.Headers().Get("X-Referenced-Uri", "") p.ReferencedURI = nntp.Headers().Get("X-References-Uri", "")
p.FrontendPublicKey = nntp.FrontendPubkey() p.FrontendPublicKey = nntp.FrontendPubkey()
for _, att := range nntp.Attachments() { for _, att := range nntp.Attachments() {
p.Files = append(p.Files, att.ToModel(prefix)) p.Files = append(p.Files, att.ToModel(prefix))