rdluck 4 lat temu
rodzic
commit
811fed60e0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      services/article.go

+ 1 - 1
services/article.go

@@ -55,7 +55,7 @@ func GetReportContentTextSub(content string) (contentSub string, err error) {
 			}
 		}
 	})
-	if contentSub == "" {
+	if contentSub == "" || len(contentSub) < 200 {
 		m := 0
 		doc.Find("span").Each(func(i int, s *goquery.Selection) {
 			spanHtml, _ := s.Html()