kopia lustrzana https://github.com/nextcloud/social
Remove withespaces from mentions
Signed-off-by: Louis Chemineau <louis@chmn.me>pull/1726/head
rodzic
8890d7d68e
commit
9d01a2da2d
|
@ -197,13 +197,12 @@ export default {
|
|||
+ '</div>'
|
||||
},
|
||||
selectTemplate(item) {
|
||||
return `
|
||||
<span class="mention" contenteditable="false">
|
||||
<a href="${item.original.url}" target="_blank">
|
||||
<img src="${item.original.avatar}"/>
|
||||
@${item.original.value}
|
||||
</a>
|
||||
</span>`
|
||||
return '<span class="mention" contenteditable="false">'
|
||||
+ `<a href="${item.original.url}" target="_blank">`
|
||||
+ `<img src="${item.original.avatar}"/>`
|
||||
+ `@${item.original.value}`
|
||||
+ '</a>'
|
||||
+ '</span> '
|
||||
},
|
||||
values: debounce(async (text, populate) => {
|
||||
if (text.length < 1) {
|
||||
|
@ -311,13 +310,13 @@ export default {
|
|||
handle += `@${this.hostname}`
|
||||
}
|
||||
|
||||
this.$refs.composerInput.innerHTML = `
|
||||
<span class="mention" contenteditable="false">
|
||||
<a href="${account.url}" target="_blank">
|
||||
<img src="${account.avatar}"/>
|
||||
@${handle}
|
||||
</a>
|
||||
</span> `
|
||||
this.$refs.composerInput.innerHTML
|
||||
= '<span class="mention" contenteditable="false">'
|
||||
+ `<a href="${account.url}" target="_blank">`
|
||||
+ `<img src="${account.avatar}"/>`
|
||||
+ `@${handle}`
|
||||
+ '</a>'
|
||||
+ '</span> '
|
||||
this.updateStatusContent()
|
||||
},
|
||||
updateStatusContent() {
|
||||
|
|
Ładowanie…
Reference in New Issue