mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Cleaning blurblog url on profiles.
This commit is contained in:
parent
90f746d1ff
commit
ec08d68414
2 changed files with 7 additions and 2 deletions
|
@ -20,7 +20,12 @@ NEWSBLUR.Models.User = Backbone.Model.extend({
|
|||
},
|
||||
|
||||
blurblog_url: function() {
|
||||
return 'http://' + Inflector.sluggify(this.get('username')) + window.location.host.replace('www.', '');
|
||||
return [
|
||||
'http://',
|
||||
Inflector.sluggify(this.get('username')),
|
||||
'.',
|
||||
window.location.host.replace('www.', '')
|
||||
].join('');
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -54,7 +54,7 @@ NEWSBLUR.Views.SocialProfileBadge = Backbone.View.extend({
|
|||
'shared ',
|
||||
Inflector.pluralize('story', profile.get('shared_stories_count')),
|
||||
' · ',
|
||||
$.make('a', { href: profile.blurblog_url(), target: "_blank", className: "NB-profile-badge-blurblog-link NB-splash-link" }, profile.blurblog_url())
|
||||
$.make('a', { href: profile.blurblog_url(), target: "_blank", className: "NB-profile-badge-blurblog-link NB-splash-link" }, profile.blurblog_url().replace('http://', ''))
|
||||
]))
|
||||
])
|
||||
])
|
||||
|
|
Loading…
Add table
Reference in a new issue