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
This commit is contained in:
sebastjanartic 2026-01-24 13:54:45 +00:00
parent 9e9040d2b3
commit a1a282709c

View File

@ -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) {