kopia lustrzana https://github.com/nextcloud/social
Catch undefined message in announcements
Signed-off-by: Julius Härtl <jus@bitgrid.net>pull/507/head
rodzic
3d45ecfbcc
commit
f9e35642cd
|
@ -98,6 +98,9 @@ export default {
|
|||
},
|
||||
formatedMessage() {
|
||||
let message = this.item.content
|
||||
if (typeof message === 'undefined') {
|
||||
return ''
|
||||
}
|
||||
message = message.replace(/(?:\r\n|\r|\n)/g, '<br />')
|
||||
message = message.linkify({
|
||||
formatHref: {
|
||||
|
|
Ładowanie…
Reference in New Issue