mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-15 04:02: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.Member;
|
||||||
import net.dv8tion.jda.api.entities.Message;
|
import net.dv8tion.jda.api.entities.Message;
|
||||||
import net.dv8tion.jda.api.entities.channel.middleman.GuildMessageChannel;
|
import net.dv8tion.jda.api.entities.channel.middleman.GuildMessageChannel;
|
||||||
|
import org.apache.commons.lang3.RandomStringUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
@@ -138,6 +139,7 @@ public class StreamerServiceBean implements StreamerService {
|
|||||||
.mature(stream.isMature())
|
.mature(stream.isMature())
|
||||||
.currentSection(StreamSectionDisplay.fromStream(stream))
|
.currentSection(StreamSectionDisplay.fromStream(stream))
|
||||||
.streamerAvatarURL(streamerUser.getProfileImageUrl())
|
.streamerAvatarURL(streamerUser.getProfileImageUrl())
|
||||||
|
.randomString(RandomStringUtils.randomAlphabetic(15))
|
||||||
.streamURL(formatStreamUrl(stream.getUserName()))
|
.streamURL(formatStreamUrl(stream.getUserName()))
|
||||||
.build();
|
.build();
|
||||||
MessageToSend messagetoSend;
|
MessageToSend messagetoSend;
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ public class GoLiveNotificationModel {
|
|||||||
private List<StreamSectionDisplay> pastSections;
|
private List<StreamSectionDisplay> pastSections;
|
||||||
private Boolean mature;
|
private Boolean mature;
|
||||||
private String streamURL;
|
private String streamURL;
|
||||||
|
private String randomString;
|
||||||
private String streamerAvatarURL;
|
private String streamerAvatarURL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user