mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-03 16:27:53 +00:00
[AB-101] adding random string to twitch stream preview image to invalidate cache
This commit is contained in:
@@ -31,6 +31,7 @@ import net.dv8tion.jda.api.entities.Guild;
|
||||
import net.dv8tion.jda.api.entities.Member;
|
||||
import net.dv8tion.jda.api.entities.Message;
|
||||
import net.dv8tion.jda.api.entities.channel.middleman.GuildMessageChannel;
|
||||
import org.apache.commons.lang3.RandomStringUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
@@ -138,6 +139,7 @@ public class StreamerServiceBean implements StreamerService {
|
||||
.mature(stream.isMature())
|
||||
.currentSection(StreamSectionDisplay.fromStream(stream))
|
||||
.streamerAvatarURL(streamerUser.getProfileImageUrl())
|
||||
.randomString(RandomStringUtils.randomAlphabetic(15))
|
||||
.streamURL(formatStreamUrl(stream.getUserName()))
|
||||
.build();
|
||||
MessageToSend messagetoSend;
|
||||
|
||||
@@ -13,5 +13,6 @@ public class GoLiveNotificationModel {
|
||||
private List<StreamSectionDisplay> pastSections;
|
||||
private Boolean mature;
|
||||
private String streamURL;
|
||||
private String randomString;
|
||||
private String streamerAvatarURL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user