mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-10 09:58:07 -06:00
[bugfix] Fix up error getting account avatar/header errors, other small fixes (#1496)
* start fiddling with media + account queries a little
* initialize state when pruning
* allow for unsetting remote media
make sure to wait til media loaded
fix silly tiny bug
* move comment a bit for readability
* slight reformat of fetchRemoteAccount{Avatar,Header}
* fix issue after rebase
* slightly neaten up logic of avatar/header media handling
* remove log prefix (callername log field handles this)
---------
Signed-off-by: kim <grufwub@gmail.com>
Co-authored-by: kim <grufwub@gmail.com>
This commit is contained in:
parent
acc95923da
commit
561ad71e58
7 changed files with 175 additions and 102 deletions
|
|
@ -178,7 +178,8 @@ func NewBunDBService(ctx context.Context, state *state.State) (db.DB, error) {
|
|||
conn: conn,
|
||||
},
|
||||
Media: &mediaDB{
|
||||
conn: conn,
|
||||
conn: conn,
|
||||
state: state,
|
||||
},
|
||||
Mention: &mentionDB{
|
||||
conn: conn,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue