Fix for previous commit

This commit is contained in:
Armin 2019-03-25 15:37:05 +01:00
parent f2735e6275
commit a55b253784

View File

@ -23,7 +23,7 @@ export { activityPub }
export default class ActivityPub { export default class ActivityPub {
constructor (hostname, port, uri) { constructor (hostname, port, uri) {
if (hostname === 'localhost') { this.hostname = `${hostname}:${port}` } else { this.hostname = hostname } this.hostname = hostname
this.port = port this.port = port
this.dataSource = new NitroDataSource(uri) this.dataSource = new NitroDataSource(uri)
this.collections = new Collections(this.dataSource) this.collections = new Collections(this.dataSource)