Support links and embeds in the chat

This commit is contained in:
Gabe Kangas
2020-06-02 15:37:36 -07:00
parent f6153c983f
commit 380dad2b87
3 changed files with 244 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ class Message {
this.image = "https://robohash.org/" + model.author
}
linkedText() {
return autoLink(this.body, { embed: true })
}
toModel() {
return {
author: this.author(),