Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 635d368

Browse files
committed
Fix 2 bugs
- remove extra / in resolver url - fix wrong array in following button toggle
1 parent 25d2fa5 commit 635d368

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ module.exports = Backbone.Router.extend({
107107
guidFetch;
108108

109109
if (handle) {
110-
guidFetch = app.getGuid(handle, this.userModel.get('resolver') + '/v2/users/')
110+
guidFetch = app.getGuid(handle, this.userModel.get('resolver').replace(/\/+$/, "") + '/v2/users/')
111111
.done((guid) => {
112112
deferred.resolve(guid);
113113
}).fail(() => {

js/views/userPageVw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ module.exports = baseVw.extend({
668668
}
669669
//mark whether page is being followed
670670
if(self.options.ownPage === false){
671-
self.toggleFollowButtons(Boolean(__.findWhere(followingArray, {guid: self.pageID})));
671+
self.toggleFollowButtons(Boolean(__.findWhere(ownFollowingData.following, {guid: self.pageID})));
672672
}
673673

674674
}).fail(function(jqXHR, status, errorThrown){

0 commit comments

Comments
 (0)