mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: Only look for fa-
at the beginning of the field. Allows urls with
that combination in it. Thanks @riking
This commit is contained in:
parent
d22b668393
commit
ea0c6df839
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ export default ObjectController.extend({
|
||||||
|
|
||||||
hasCardBadgeImage: function() {
|
hasCardBadgeImage: function() {
|
||||||
var img = this.get('user.card_badge.image');
|
var img = this.get('user.card_badge.image');
|
||||||
return img && img.indexOf('fa-') === -1;
|
return img && img.indexOf('fa-') === 0;
|
||||||
}.property('user.card_badge.image'),
|
}.property('user.card_badge.image'),
|
||||||
|
|
||||||
show: function(username, uploadedAvatarId) {
|
show: function(username, uploadedAvatarId) {
|
||||||
|
|
Loading…
Reference in a new issue