diff --git a/docker/cron/crontab b/docker/cron/crontab index ad396cb..3f37be3 100644 --- a/docker/cron/crontab +++ b/docker/cron/crontab @@ -1 +1 @@ -0 */6 * * * /index_articles.sh >> /var/log/cron.log 2>&1 +*/5 * * * * /index_articles.sh >> /var/log/cron.log 2>&1 diff --git a/docker/cron/index_articles.sh b/docker/cron/index_articles.sh index 989f2d9..831ee60 100644 --- a/docker/cron/index_articles.sh +++ b/docker/cron/index_articles.sh @@ -2,5 +2,4 @@ set -e export PATH="/usr/local/bin:/usr/bin:/bin" -php /var/www/html/bin/console articles:get -- '-1 week' 'now' -php /var/www/html/bin/console articles:qa +php /var/www/html/bin/console articles:get -- '-6 min' 'now' diff --git a/frankenphp/Caddyfile b/frankenphp/Caddyfile index 573219c..27321dc 100644 --- a/frankenphp/Caddyfile +++ b/frankenphp/Caddyfile @@ -22,21 +22,6 @@ root /app/public encode zstd br gzip - mercure { - # Transport to use (default to Bolt) - transport_url {$MERCURE_TRANSPORT_URL:bolt:///data/mercure.db} - # Publisher JWT key - publisher_jwt {env.MERCURE_PUBLISHER_JWT_KEY} {env.MERCURE_PUBLISHER_JWT_ALG} - # Subscriber JWT key - subscriber_jwt {env.MERCURE_SUBSCRIBER_JWT_KEY} {env.MERCURE_SUBSCRIBER_JWT_ALG} - # Allow anonymous subscribers (double-check that it's what you want) - anonymous - # Enable the subscription API (double-check that it's what you want) - subscriptions - # Extra directives - {$MERCURE_EXTRA_DIRECTIVES} - } - vulcain {$CADDY_SERVER_EXTRA_DIRECTIVES} diff --git a/src/Service/NostrClient.php b/src/Service/NostrClient.php index 9f74553..656bcf1 100644 --- a/src/Service/NostrClient.php +++ b/src/Service/NostrClient.php @@ -26,7 +26,7 @@ class NostrClient /** * List of reputable relays in descending order of reputation */ - private const array REPUTABLE_RELAYS = [ + private const REPUTABLE_RELAYS = [ 'wss://theforest.nostr1.com', ]; diff --git a/src/Service/NostrLinkParser.php b/src/Service/NostrLinkParser.php index 1f82bd6..3587a6c 100644 --- a/src/Service/NostrLinkParser.php +++ b/src/Service/NostrLinkParser.php @@ -7,7 +7,7 @@ use Psr\Log\LoggerInterface; readonly class NostrLinkParser { - private const string NOSTR_LINK_PATTERN = '/(?:nostr:)?(nevent1[a-z0-9]+|naddr1[a-z0-9]+|nprofile1[a-z0-9]+|note1[a-z0-9]+|npub1[a-z0-9]+)/'; + private const NOSTR_LINK_PATTERN = '/(?:nostr:)?(nevent1[a-z0-9]+|naddr1[a-z0-9]+|nprofile1[a-z0-9]+|note1[a-z0-9]+|npub1[a-z0-9]+)/'; public function __construct( diff --git a/src/Twig/Components/SearchComponent.php b/src/Twig/Components/SearchComponent.php index 7fc5c5a..34ca585 100644 --- a/src/Twig/Components/SearchComponent.php +++ b/src/Twig/Components/SearchComponent.php @@ -32,8 +32,8 @@ final class SearchComponent #[LiveProp] public int $resultsPerPage = 12; - private const string SESSION_KEY = 'last_search_results'; - private const string SESSION_QUERY_KEY = 'last_search_query'; + private const SESSION_KEY = 'last_search_results'; + private const SESSION_QUERY_KEY = 'last_search_query'; public function __construct( private readonly ArticleRepository $articleRepository,