mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
- Remove avatar url fix javascript version, it breaks too easily.
Same can be done with Caddy. Thanks to xet7 ! Closes #1776, closes #386
This commit is contained in:
parent
d2c3ecdbcd
commit
dfd26e4843
3 changed files with 1 additions and 16 deletions
|
|
@ -14,13 +14,6 @@ Template.userAvatar.helpers({
|
|||
});
|
||||
},
|
||||
|
||||
fixAvatarUrl(avatarUrl) {
|
||||
// Remove suburl from beginning of avatar file path,
|
||||
// so that avatar images don't get broken when root-url changes to different sub-url.
|
||||
avatarUrl = `/${ avatarUrl.substring(avatarUrl.indexOf('/cfs/files/avatars/')+1)}`;
|
||||
return avatarUrl;
|
||||
},
|
||||
|
||||
memberType() {
|
||||
const user = Users.findOne(this.userId);
|
||||
return user && user.isBoardAdmin() ? 'admin' : 'normal';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue