mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-22 10:12:11 +00:00
fix new processing media / emoji not being added to dereferencer maps (#3269)
This commit is contained in:
parent
7b7659f1fa
commit
6ee540a503
|
@ -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