mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2024-11-10 06:54:16 +00:00
fix new processing media / emoji not being added to dereferencer maps (#3269)
This commit is contained in:
parent
7b7659f1fa
commit
6ee540a503
2 changed files with 6 additions and 0 deletions
|
@ -303,6 +303,9 @@ func (d *Dereferencer) processEmojiSafely(
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// Add processing emoji media to hash map.
|
||||
d.derefEmojis[shortcodeDomain] = processing
|
||||
|
||||
defer func() {
|
||||
// Remove on finish.
|
||||
d.derefEmojisMu.Lock()
|
||||
|
|
|
@ -244,6 +244,9 @@ func (d *Dereferencer) processMediaSafeley(
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// Add processing media to hash map.
|
||||
d.derefMedia[remoteURL] = processing
|
||||
|
||||
defer func() {
|
||||
// Remove on finish.
|
||||
d.derefMediaMu.Lock()
|
||||
|
|
Loading…
Reference in a new issue