mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-28 03:11:01 +00:00
pin instanceAccountID to in-process emoji
This commit is contained in:
parent
113f9d9ab4
commit
33ca5513ad
1 changed files with 10 additions and 6 deletions
|
@ -37,6 +37,9 @@ import (
|
||||||
type ProcessingEmoji struct {
|
type ProcessingEmoji struct {
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
|
|
||||||
|
// id of this instance's account -- pinned for convenience here so we only need to fetch it once
|
||||||
|
instanceAccountID string
|
||||||
|
|
||||||
/*
|
/*
|
||||||
below fields should be set on newly created media;
|
below fields should be set on newly created media;
|
||||||
emoji will be updated incrementally as media goes through processing
|
emoji will be updated incrementally as media goes through processing
|
||||||
|
@ -370,12 +373,13 @@ func (m *manager) preProcessEmoji(ctx context.Context, data DataFunc, shortcode
|
||||||
}
|
}
|
||||||
|
|
||||||
processingEmoji := &ProcessingEmoji{
|
processingEmoji := &ProcessingEmoji{
|
||||||
emoji: emoji,
|
instanceAccountID: instanceAccount.ID,
|
||||||
data: data,
|
emoji: emoji,
|
||||||
staticState: received,
|
data: data,
|
||||||
fullSizeState: received,
|
staticState: received,
|
||||||
database: m.db,
|
fullSizeState: received,
|
||||||
storage: m.storage,
|
database: m.db,
|
||||||
|
storage: m.storage,
|
||||||
}
|
}
|
||||||
|
|
||||||
return processingEmoji, nil
|
return processingEmoji, nil
|
||||||
|
|
Loading…
Reference in a new issue