Skip to content

Backport 8chan upload banners#950

Draft
perdedora wants to merge 32 commits intovichan-devel:devfrom
perdedora:banners-8chan
Draft

Backport 8chan upload banners#950
perdedora wants to merge 32 commits intovichan-devel:devfrom
perdedora:banners-8chan

Conversation

@perdedora
Copy link
Member

This also closes #945

@Zankaria
Copy link

Props for the http caching headers

@perdedora perdedora requested a review from Zankaria June 20, 2025 14:18
inc/config.php Outdated
// Which board should we serve for ukko
$config['banner_ukko'] = 'ukko';
// Allowed banner extensions
$config['banner_ext'] = ['jpg', 'jpeg', 'png', 'gif', 'webp'];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤓Actually, it doesn't make much sense to put them here since this is a limit of the software, and i'll argue it doesn't make much sense for somebody to configure this while they could simply only use the banners of the extensions they want

private function getFilesInDirectory(string $dir): array {
if (!\is_dir($dir)) {
$this->logger->log(
LogDriver::WARNING,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤓☝️
This and the one in serve are errors though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants