If this is the last discussion point before being able to merge this PR, I'll give in. :-)
You're right, that makes more sense. I'll change that probably tomorrow, I'm short on time right now.
Strange, I did run bin/dev/php-cs-fixer/vendor/bin/php-cs-fixer
for the file. However, I've seen that you've done some reformatting of my code as well in commit https://git.friendi.ca/friendica/f…
TBH, I'm not a big fan of that change. After all, it requires two clicks of the user instead of just one to watch the video. All other alternative frontends provided by this addon show the content…
The alternative approach could look like this:
$server = rtrim(trim($_POST['nitter_server']), '/');
if (empty($server)) {
DI::config()->delete('url_replace', 'nitter_server');
}…
@tobias is right, Invidious is smart enough to understand the same URL structure which YouTube uses, so you only need to replace the server part.
Thanks for your review. Unfotunately, the third parameter of get() does not work in this case, I've tried that. When the addon is freshly installed, there is no configuration in the database. In…