mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-07 17:48:07 -06:00
[feature] Implement Report database model and utility functions (#1310)
* implement report database model * implement report cache + config changes * implement report database functions * report uri / regex functions * update envparsing test * remove unnecessary uri index * remove unused function + cache lookup * process error when storing report
This commit is contained in:
parent
36aa6854bd
commit
d6487933c7
21 changed files with 693 additions and 6 deletions
|
|
@ -83,6 +83,7 @@ type DBService struct {
|
|||
db.Mention
|
||||
db.Notification
|
||||
db.Relationship
|
||||
db.Report
|
||||
db.Session
|
||||
db.Status
|
||||
db.Timeline
|
||||
|
|
@ -197,6 +198,10 @@ func NewBunDBService(ctx context.Context, state *state.State) (db.DB, error) {
|
|||
conn: conn,
|
||||
state: state,
|
||||
},
|
||||
Report: &reportDB{
|
||||
conn: conn,
|
||||
state: state,
|
||||
},
|
||||
Session: &sessionDB{
|
||||
conn: conn,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue