basic impl of creating a link, with preview

This commit is contained in:
Bruno Windels
2020-12-02 15:39:33 +01:00
parent 5d40d01360
commit 0fc203dff5
5 changed files with 69 additions and 5 deletions
+8
View File
@@ -166,4 +166,12 @@ export class Link {
this.servers.length === link.servers.length &&
this.servers.every((s, i) => link.servers[i] === s);
}
toFragment() {
if (this.eventId) {
return `/${this.identifier}/${this.eventId}`;
} else {
return `/${this.identifier}`;
}
}
}