only select active hashtags

This commit is contained in:
Matthias Czech 2025-03-17 17:41:10 +01:00
parent e349d57bbe
commit 07e13afb2a
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ try {
$bearerToken = '99jJEXMrMPSGKyg0wp-OrGJ-5s38XPLlE0lmNmv6QSI';
// Alle Hashtags aus der Tabelle abrufen
$stmt = $pdo->query("SELECT hashtag, hashtag_id FROM hashtags");
$stmt = $pdo->query("SELECT hashtag, hashtag_id FROM hashtags WHERE active = 1;");
$hashtags = $stmt->fetchAll();
if (!$hashtags) {