gotosocial/internal/db/bundb
tobi b143877995
[feature] Unused avatar and header cleanup (#574)
* rename + tidy up remote pruning

* fix media attachment account join
see https://bun.uptrace.dev/guide/golang-orm.html#table-relationships

* update logging to new function name

* add get avatars and headers to bun

* add pruneallmeta function

* don't set uncached since we're deleting anyway

* fix totalPruned being in wrong place

* test pruning meta

* go fmt ./...

* rename mediaprune

* add meta pruning to routine mediaprune

* tidy up cleanup job scheduling

* rename adminmediaremoteprune

* update mediacleanup to use renamed prune func

* update swagger docs a little bit

* reuse cancel + context
2022-05-15 15:45:04 +01:00
..
migrations [bugfix] Add account raw note fix (#556) 2022-05-11 19:27:25 +02:00
account.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
account_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
admin.go [bug] Fix OIDC users requiring second approval (#371) 2022-01-31 16:03:47 +01:00
admin_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
basic.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
basic_test.go [bugfix] Allow self-boosting for any visibility but direct (#510) 2022-05-02 15:23:37 +02:00
bundb.go [feature] Add log-db-queries config option (#465) 2022-04-18 16:47:11 +02:00
bundb_test.go [feature] Clean up/uncache remote media (#407) 2022-03-07 11:08:26 +01:00
bundbnew_test.go [bug] Fix sqlite empty address issue (#370) 2022-01-30 17:06:28 +01:00
conn.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
domain.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
domain_test.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
errors.go go fmt 2022-02-08 12:19:54 +01:00
instance.go [bugfix] Fix infinite domain block database loop (#467) 2022-04-18 17:44:36 +02:00
media.go [feature] Unused avatar and header cleanup (#574) 2022-05-15 15:45:04 +01:00
media_test.go [feature] Unused avatar and header cleanup (#574) 2022-05-15 15:45:04 +01:00
mention.go [chore] Update Go version to 1.18 (#444) 2022-04-02 15:40:09 +02:00
mention_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
notification.go [chore] Update Go version to 1.18 (#444) 2022-04-02 15:40:09 +02:00
notification_test.go [performance] Database optimizations (#419) 2022-03-07 11:33:18 +01:00
relationship.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
relationship_test.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
session.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
session_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
status.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
status_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
timeline.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
timeline_test.go Extend license notices to 2022 (#354) 2021-12-20 18:42:19 +01:00
trace.go [performance] Speed up some of the slower db queries (#523) 2022-05-02 11:53:46 +01:00
util.go [feature] Clean up/uncache remote media (#407) 2022-03-07 11:08:26 +01:00