[backend/drive] Don't proxy requests for local emoji
This commit is contained in:
parent
6b17623cfd
commit
5d7020faeb
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ public class DriveController(
|
|||
var emoji = await db.Emojis.FirstOrDefaultAsync(p => p.Id == id)
|
||||
?? throw GracefulException.NotFound("Emoji not found");
|
||||
|
||||
if (!options.Value.ProxyRemoteMedia)
|
||||
if (!options.Value.ProxyRemoteMedia || emoji.Host == null)
|
||||
return Redirect(emoji.RawPublicUrl);
|
||||
|
||||
return await ProxyAsync(emoji.RawPublicUrl, null, null);
|
||||
|
|
Loading…
Add table
Reference in a new issue