Change RSS feed links
This commit is contained in:
parent
306c05fcd7
commit
9206de7308
@ -28,9 +28,9 @@ class RssService(
|
||||
items.subList(0, items.size.coerceAtMost(50))
|
||||
|
||||
val channel = Channel(
|
||||
title = "nise.moe's feed and sneed",
|
||||
link = "https://nise.moe/rss",
|
||||
description = "Feed of *sus* scores for osu!std - /nise.moe/",
|
||||
title = "nise.stedos.dev's feed and sneed",
|
||||
link = "https://nise.stedos.dev/rss",
|
||||
description = "Feed of *sus* scores for osu!std - /nise.stedos.dev/",
|
||||
lastBuildDate = Date().toInstant().atZone(ZoneOffset.UTC).format(DateTimeFormatter.RFC_1123_DATE_TIME),
|
||||
item = items.map {
|
||||
Item(
|
||||
@ -42,7 +42,7 @@ class RssService(
|
||||
)
|
||||
|
||||
},
|
||||
atomLink = AtomLink(href = "https://nise.moe/rss.xml")
|
||||
atomLink = AtomLink(href = "https://nise.stedos.dev/rss.xml")
|
||||
)
|
||||
|
||||
return RssFeed(channel = channel)
|
||||
@ -74,8 +74,8 @@ class RssService(
|
||||
if(score1.addedAt != null) {
|
||||
val item = RssFeedController.IntermeriaryFeedItem(
|
||||
title = "Possible stolen replay",
|
||||
guid = "https://nise.moe/p/${score1.replayId}/${score2.replayId}",
|
||||
link = "https://nise.moe/p/${score1.replayId}/${score2.replayId}",
|
||||
guid = "https://nise.stedos.dev/p/${score1.replayId}/${score2.replayId}",
|
||||
link = "https://nise.stedos.dev/p/${score1.replayId}/${score2.replayId}",
|
||||
description = "Similarity: ${result[SCORES_SIMILARITY.SIMILARITY]}%\n" +
|
||||
"Replay by ${user1.username} on ${beatmap.artist} - ${beatmap.title} [${beatmap.version}] (${beatmap.starRating} stars)\n" +
|
||||
"Replay by ${user2.username} on ${beatmap.artist} - ${beatmap.title} [${beatmap.version}] (${beatmap.starRating} stars)",
|
||||
@ -113,8 +113,8 @@ class RssService(
|
||||
if(score.addedAt != null) {
|
||||
val item = RssFeedController.IntermeriaryFeedItem(
|
||||
title = "Suspicious score by ${user.username}",
|
||||
guid = "https://nise.moe/s/${score.replayId}",
|
||||
link = "https://nise.moe/s/${score.replayId}",
|
||||
guid = "https://nise.stedos.dev/s/${score.replayId}",
|
||||
link = "https://nise.stedos.dev/s/${score.replayId}",
|
||||
description = "New score by ${user.username} on ${beatmap.artist} - ${beatmap.title} [${beatmap.version}] (${beatmap.starRating} stars)",
|
||||
pubDate = score.addedAt!!
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user