Use clearer urls fro documents

This commit is contained in:
Jori Lallo
2016-08-15 21:41:51 +02:00
parent 537341c01c
commit 3089ac7bc8
14 changed files with 88 additions and 56 deletions

View File

@@ -37,7 +37,7 @@ export async function presentDocument(ctx, document, options) {
const data = {
id: document.id,
url: document.buildUrl(),
url: document.getUrl(),
private: document.private,
title: document.title,
text: document.text,
@@ -96,6 +96,7 @@ export function presentCollection(ctx, collection, includeRecentDocuments=false)
return new Promise(async (resolve, _reject) => {
const data = {
id: collection.id,
url: collection.getUrl(),
name: collection.name,
description: collection.description,
type: collection.type,