Commit 8f6cde9a147df8d5000afd84a4653031fe7f06ee
safer name handling
Joran committed on 11/11/2017, 1:41:05 AMParent: 45aa93783fbfd44f185054eb5340ee620fc678a2
Files changed
src/components/Message.vue | changed |
src/components/Message.vue | ||
---|---|---|
@@ -1,10 +1,10 @@ | ||
1 | 1 … | |
2 | 2 … | <template> |
3 | 3 … | <div class="media"> |
4 | - <img class="d-flex mr-3" :alt="author.name()"> | |
4 … | + <img class="d-flex mr-3" :alt="author"> | |
5 | 5 … | <div class="media-body"> |
6 | - <h5 class="mt-0">{{ author.name() }}</h5> | |
6 … | + <h5 class="mt-0">{{ author }}</h5> | |
7 | 7 … | {{ message.value.content.text() }} |
8 | 8 … | |
9 | 9 … | <p> |
10 | 10 … | {{ message.value.content.type() }} |
@@ -29,9 +29,9 @@ | ||
29 | 29 … | } |
30 | 30 … | }, |
31 | 31 … | methods: { |
32 | 32 … | setAuthor(err, a){ |
33 | - this.author = nn(a[0]) | |
33 … | + this.author = nn(a[0]).name() | |
34 | 34 … | } |
35 | 35 … | }, |
36 | 36 … | created() { |
37 | 37 … | this.$depject_api.signifier[0](this.message.value.author(), this.setAuthor) |
Built with git-ssb-web