mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #449 from sharelatex/ho-trust-blog-urls
don't add /blog to the start of blog urls in annoucements
This commit is contained in:
commit
604aa7859e
1 changed files with 1 additions and 2 deletions
|
@ -10,7 +10,7 @@ module.exports = BlogHandler =
|
|||
opts =
|
||||
url:blogUrl
|
||||
json:true
|
||||
timeout:500
|
||||
timeout:1000
|
||||
request.get opts, (err, res, announcements)->
|
||||
if err?
|
||||
return callback err
|
||||
|
@ -18,7 +18,6 @@ module.exports = BlogHandler =
|
|||
return callback("blog announcement returned non 200")
|
||||
logger.log announcementsLength: announcements?.length, "announcements returned"
|
||||
announcements = _.map announcements, (announcement)->
|
||||
announcement.url = "/blog#{announcement.url}"
|
||||
announcement.date = new Date(announcement.date)
|
||||
return announcement
|
||||
callback(err, announcements)
|
||||
|
|
Loading…
Reference in a new issue