Fix YouTube feeds not posting anymore
This commit is contained in:
benji7425 2018-01-23 23:19:48 +00:00
parent 9b37c3b5cd
commit f904eecc50
3 changed files with 7 additions and 3 deletions

View File

@ -1,10 +1,14 @@
# Changelog
## v3.4.0-b1
## v3.4.0
### Added
- Added automatic daily restart
### Updated
- Disabled a few unused websocket events
- Update database compaction to be more frequent
### Fixed
- Fixed YouTube feeds not updating
## v3.3.0
### Updated

View File

@ -121,7 +121,7 @@ function formatPost(article) {
function normaliseUrlForDiscord(url) {
const parsedUrl = Url.parse(url);
if (parsedUrl.host && parsedUrl.host.includes("youtube.com"))
url = normaliseYouTubeUrl(url);
url = normaliseYouTubeUrl(url, parsedUrl);
return url;
}

View File

@ -1,5 +1,5 @@
{
"version": "3.4.0-b1",
"version": "3.4.0",
"main": "app/index.js",
"scripts": {
"postinstall": "cd ./discord-bot-core && npm install",