Skip to content

Commit

Permalink
cock
Browse files Browse the repository at this point in the history
  • Loading branch information
Naamloos committed Oct 18, 2023
1 parent c90a5b4 commit ad9220d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ModCore/Listeners/StarboardListeners.cs
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,10 @@ private static DiscordMessageBuilder buildStarboardMessage(DiscordMessage source
}

var embeds = new List<DiscordEmbed>();

var imageFiles = sourceMessage.Attachments.Where(x =>
{
var uri = new Uri(x.Url);
return uri.IsFile && validFileExts.Contains(Path.GetExtension(uri.AbsolutePath));
return validFileExts.Contains(Path.GetExtension(uri.AbsolutePath));
});

if (imageFiles.Any())
Expand Down

0 comments on commit ad9220d

Please sign in to comment.