Hugo theme component for scraping comments on a Mastodon post containing a site's address https://mehl.mx
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
645 B

<?php
/*
SPDX-License-Identifier: CC0-1.0
SPDX-FileCopyrightText: 2019 Max Mehl <mail@mehl.mx>
*/
$config = [
'mastodon-instance' => 'https://mastodon.social', // URL of your Mastodon instance
'user-id' => 379833, // Your Mastodon-ID. A bit tricky to find out, the API might help
// the URL of your blog. All toots are searched for this string
// please use https?:// as schema
'search-url' => 'https?://fsfe.org',
'cache_toots' => 300, // seconds to cache toots
'cache_comments' => 300, // seconds to cache comments (per ID)
'debug' => false // writes some debug messages in error_log
];