diff options
author | FChannel <> | 2021-07-03 19:58:22 -0700 |
---|---|---|
committer | FChannel <> | 2021-07-03 19:58:22 -0700 |
commit | 68f3c361656ae343fd809239452a954424a0bcb2 (patch) | |
tree | dacd87de82acb57f6ac0c447b09ab57db0b23fad /database.go | |
parent | 068e6caf8dfa3fb36dd9f74b9070f41f801e9c8d (diff) |
added report reason to admin manage page
Diffstat (limited to 'database.go')
-rw-r--r-- | database.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/database.go b/database.go index 954ec0f..5668a4d 100644 --- a/database.go +++ b/database.go @@ -1451,7 +1451,7 @@ func GetActorReportedTotal(db *sql.DB, id string) int { func GetActorReportedDB(db *sql.DB, id string) []ObjectBase { var nObj []ObjectBase - query := `select id, count from reported where board=$1` + query := `select id, count, reason from reported where board=$1` rows, err := db.Query(query, id) @@ -1462,7 +1462,7 @@ func GetActorReportedDB(db *sql.DB, id string) []ObjectBase { for rows.Next() { var obj ObjectBase - rows.Scan(&obj.Id, &obj.Size) + rows.Scan(&obj.Id, &obj.Size, &obj.Content) nObj = append(nObj, obj) } |