2019-09-22 05:05:30 +00:00
|
|
|
'use strict'
|
|
|
|
const request = require('request-promise-native')
|
|
|
|
|
|
|
|
// federation communication utilities
|
|
|
|
module.exports = {
|
2019-09-22 05:20:37 +00:00
|
|
|
requestObject
|
2019-09-22 05:05:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function requestObject (id) {
|
2019-09-22 05:20:37 +00:00
|
|
|
return request({
|
|
|
|
url: id,
|
|
|
|
headers: { Accept: 'application/activity+json' },
|
|
|
|
json: true
|
|
|
|
})
|
|
|
|
}
|