mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 17:12:13 +08:00
Add rel="nofollow" to bio links (fixes #449)
This commit is contained in:
parent
bd1d05ee2c
commit
15398fcc6d
|
@ -17,7 +17,7 @@ Object.assign(User.prototype, {
|
|||
|
||||
avatarUrl: Model.attribute('avatarUrl'),
|
||||
bio: Model.attribute('bio'),
|
||||
bioHtml: computed('bio', bio => bio ? '<p>' + $('<div/>').text(bio).html().replace(/\n/g, '<br>').autoLink() + '</p>' : ''),
|
||||
bioHtml: computed('bio', bio => bio ? '<p>' + $('<div/>').text(bio).html().replace(/\n/g, '<br>').autoLink({rel: 'nofollow'}) + '</p>' : ''),
|
||||
preferences: Model.attribute('preferences'),
|
||||
groups: Model.hasMany('groups'),
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user