Skip to content

Commit

Permalink
Update RSS feed URL to .com
Browse files Browse the repository at this point in the history
And move it to ConfigConstants so it doesn't get missed again.
  • Loading branch information
PJB3005 committed May 19, 2024
1 parent c12ea48 commit 594406d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion SS14.Launcher/ConfigConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ public static class ConfigConstants
public static readonly string AuthUrl = "https://auth.spacestation14.com/";
public static readonly Uri[] DefaultHubUrls = { new("https://hub.spacestation14.com/") };
public const string DiscordUrl = "https://discord.ss14.io/";
public const string AccountBaseUrl = "https://account.spacestation14.com/Identity/Account/";
public const string AccountBaseUrl = "https://account.spacestation14.com/Identity/Account/";
public const string AccountManagementUrl = $"{AccountBaseUrl}Manage";
public const string AccountRegisterUrl = $"{AccountBaseUrl}Register";
public const string AccountResendConfirmationUrl = $"{AccountBaseUrl}ResendEmailConfirmation";
public const string WebsiteUrl = "https://spacestation14.com";
public const string DownloadUrl = "https://spacestation14.com/about/nightlies/";
public const string NewsFeedUrl = "https://spacestation14.com/post/index.xml";

private static readonly UrlFallbackSet RobustBuildsBaseUrl = new([
"https://robust-builds.cdn.spacestation14.com/",
Expand Down
4 changes: 1 addition & 3 deletions SS14.Launcher/ViewModels/MainWindowTabs/NewsTabViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ namespace SS14.Launcher.ViewModels.MainWindowTabs;

public class NewsTabViewModel : MainWindowTabViewModel
{
private const string FeedUrl = "https://spacestation14.io/post/index.xml";

private bool _startedPullingNews;
private bool _newsPulled;

Expand Down Expand Up @@ -44,7 +42,7 @@ private async void PullNews()
}

_startedPullingNews = true;
var feed = await FeedReader.ReadAsync(FeedUrl);
var feed = await FeedReader.ReadAsync(ConfigConstants.NewsFeedUrl);

foreach (var feedItem in feed.Items)
{
Expand Down

0 comments on commit 594406d

Please sign in to comment.