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

View file

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

View file

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

View file

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