@@ -374,9 +374,9 @@ func (u *User) GetFollowers(page int) ([]*User, error) {
374374 Limit (ItemsPerPage , (page - 1 )* ItemsPerPage ).
375375 Where ("follow.follow_id=?" , u .ID )
376376 if setting .UsePostgreSQL {
377- sess = sess .Join ("LEFT" , "follow" , `" user" .id=follow.user_id` )
377+ sess = sess .Join ("LEFT" , "follow" , "` user` .id=follow.user_id" )
378378 } else {
379- sess = sess .Join ("LEFT" , "follow" , "user.id=follow.user_id" )
379+ sess = sess .Join ("LEFT" , "follow" , "` user` .id=follow.user_id" )
380380 }
381381 return users , sess .Find (& users )
382382}
@@ -393,9 +393,9 @@ func (u *User) GetFollowing(page int) ([]*User, error) {
393393 Limit (ItemsPerPage , (page - 1 )* ItemsPerPage ).
394394 Where ("follow.user_id=?" , u .ID )
395395 if setting .UsePostgreSQL {
396- sess = sess .Join ("LEFT" , "follow" , `" user" .id=follow.follow_id` )
396+ sess = sess .Join ("LEFT" , "follow" , "` user` .id=follow.follow_id" )
397397 } else {
398- sess = sess .Join ("LEFT" , "follow" , "user.id=follow.follow_id" )
398+ sess = sess .Join ("LEFT" , "follow" , "` user` .id=follow.follow_id" )
399399 }
400400 return users , sess .Find (& users )
401401}
0 commit comments