mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 11:46:40 +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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add processing emoji media to hash map.
|
||||||
|
d.derefEmojis[shortcodeDomain] = processing
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
// Remove on finish.
|
// Remove on finish.
|
||||||
d.derefEmojisMu.Lock()
|
d.derefEmojisMu.Lock()
|
||||||
|
|
|
@ -244,6 +244,9 @@ func (d *Dereferencer) processMediaSafeley(
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add processing media to hash map.
|
||||||
|
d.derefMedia[remoteURL] = processing
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
// Remove on finish.
|
// Remove on finish.
|
||||||
d.derefMediaMu.Lock()
|
d.derefMediaMu.Lock()
|
||||||
|
|
Loading…
Reference in a new issue