...
 
Commits (2)
......@@ -39,8 +39,8 @@ function urlFor (fragment) {
// Helper: returns an image object for the passed link.
function imageObjectFor (link) {
return {
type: "Image",
mediaType: "image/jpeg",
type: 'Image',
mediaType: 'image/jpeg',
url: link
}
}
......@@ -48,8 +48,7 @@ function imageObjectFor (link) {
module.exports = {
// Return the Actor object for the owner of the site.
get owner() {
get owner () {
return {
'@context': ['https://www.w3.org/ns/activitystreams'],
......@@ -96,7 +95,7 @@ module.exports = {
type: 'Follow',
'actor': domain,
"object": personToFollow
'object': personToFollow
}
}
}
......@@ -4,8 +4,8 @@ const activity = require('../lib/activity.js')
// Setup logger.
// (At least for now, we log to console unless tests are being run.)
const winston = require('winston')
if (process.env.NODE_ENV !== 'test') {
winston.add(new winston.transports.Console())
if (process.env.NODE_ENV === 'test') {
winston.remove(winston.transports.Console)
}
module.exports = function (app) { // eslint-disable-line no-unused-vars
......
module.exports = function (app) { // eslint-disable-line no-unused-vars
};
}