From a1a282709c82b34613c2a4854b35096a3cc4c768 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Sat, 24 Jan 2026 13:54:45 +0000 Subject: [PATCH] Improve social media sharing by adding Viber support Update social bot detection regex in server/index.ts to include 'viber' and ensure proper Open Graph tag generation for Viber. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 401e2ec0-e00d-4f10-9d0e-60f3d479f9a5 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: b8ef5700-fa21-43bd-a5fd-a29fe152119b Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/60d372ff-2c10-46c7-b01b-10c3435136b0/401e2ec0-e00d-4f10-9d0e-60f3d479f9a5/zYSbThd --- server/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.ts b/server/index.ts index 9bce027..57f0225 100644 --- a/server/index.ts +++ b/server/index.ts @@ -82,7 +82,7 @@ app.use((req, res, next) => { const userAgent = req.get('User-Agent') || ''; // Če je to Facebook, Twitter, WhatsApp ali podoben scraper - const isSocialBot = /facebookexternalhit|twitterbot|whatsapp|telegrambot|discordbot|slackbot|linkedinbot/i.test(userAgent); + const isSocialBot = /facebookexternalhit|twitterbot|whatsapp|telegrambot|discordbot|slackbot|linkedinbot|viber/i.test(userAgent); // Če NI social bot, pustimo da React routing prevzame if (!isSocialBot) {