Aktuelles: preusmeritve, breaking-news in noga kazejo na folx.news namesto na news.folx.tv
This commit is contained in:
+6
-6
@@ -106,14 +106,14 @@ const PUBLISHER = (base: string) => ({
|
||||
const ONE_RUBRIKEN = new Set(["Politik", "Promis", "Sport", "Musik & Film", "Wetter", "Finanzen", "Aktuelles"]);
|
||||
|
||||
// 30. 8. 2026: rubrike so izbrisane iz baze folx.tv in zivijo samo se na
|
||||
// news.folx.tv. Stare povezave s Facebooka in Googla morajo se vedno delati,
|
||||
// zato ob neznanem slugu vprasamo news.folx.tv, ali ga pozna, in preusmerimo.
|
||||
// folx.news. Stare povezave s Facebooka in Googla morajo se vedno delati,
|
||||
// zato ob neznanem slugu vprasamo folx.news, ali ga pozna, in preusmerimo.
|
||||
let NEWS_SLUGS: Set<string> = new Set();
|
||||
let NEWS_SLUGS_AT = 0;
|
||||
async function newsHasSlug(slug: string): Promise<boolean> {
|
||||
if (Date.now() - NEWS_SLUGS_AT > 600000) {
|
||||
try {
|
||||
const r = await fetch("https://news.folx.tv/api/articles", {
|
||||
const r = await fetch("https://folx.news/api/articles", {
|
||||
headers: { "user-agent": "folx.tv-redirect" },
|
||||
signal: AbortSignal.timeout(10000),
|
||||
});
|
||||
@@ -351,10 +351,10 @@ export function serveStatic(app: Express) {
|
||||
}
|
||||
}
|
||||
|
||||
// 29. 8. 2026: rubrike Aktuelles so preseljene na loceno stran news.folx.tv.
|
||||
// Clanki ostanejo v bazi in v /api/articles (bere jih news.folx.tv in TV sidebar),
|
||||
// 29. 8. 2026: rubrike Aktuelles so preseljene na loceno stran folx.news.
|
||||
// Clanki ostanejo v bazi in v /api/articles (bere jih folx.news in TV sidebar),
|
||||
// na folx.tv pa se naslovi trajno preusmerijo.
|
||||
const NEWS_HOST = "https://news.folx.tv";
|
||||
const NEWS_HOST = "https://folx.news";
|
||||
const NEWS_RUBRIK_SLUG: Record<string, string | undefined> = {
|
||||
"Politik": "politik",
|
||||
"Promis": "promis",
|
||||
|
||||
Reference in New Issue
Block a user