Fix descriptions
Cette révision appartient à :
Parent
a24981dc3d
révision
41655577d3
1 fichiers modifiés avec 2 ajouts et 2 suppressions
|
@ -79,7 +79,7 @@ type TorrentsJson struct {
|
||||||
Hash string `json: "hash"`
|
Hash string `json: "hash"`
|
||||||
Date int `json: "date"`
|
Date int `json: "date"`
|
||||||
Filesize string `json: "filesize"`
|
Filesize string `json: "filesize"`
|
||||||
Description string `json: "description"`
|
Description template.HTML `json: "description"`
|
||||||
Sub_Category SubCategoryJson `json: "sub_category"`
|
Sub_Category SubCategoryJson `json: "sub_category"`
|
||||||
Category CategoryJson `json: "category"`
|
Category CategoryJson `json: "category"`
|
||||||
Magnet template.URL `json: "magnet"`
|
Magnet template.URL `json: "magnet"`
|
||||||
|
@ -214,7 +214,7 @@ func (t *Torrents) toJson() TorrentsJson {
|
||||||
Hash: t.Hash,
|
Hash: t.Hash,
|
||||||
Date: t.Date,
|
Date: t.Date,
|
||||||
Filesize: t.Filesize,
|
Filesize: t.Filesize,
|
||||||
Description: unZlib(t.Description),
|
Description: template.HTML(unZlib(t.Description)),
|
||||||
Sub_Category: t.Sub_Categories.toJson(),
|
Sub_Category: t.Sub_Categories.toJson(),
|
||||||
Category: t.Categories.toJson(),
|
Category: t.Categories.toJson(),
|
||||||
Magnet: safe(magnet)}
|
Magnet: safe(magnet)}
|
||||||
|
|
Référencer dans un nouveau ticket