File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ export const routeRegex = {
22 PostsIndex : / ^ \/ ( @ [ \w \. \d - ] + ) \/ f e e d \/ ? $ / ,
33 UserProfile1 : / ^ \/ ( @ [ \w \. \d - ] + ) \/ ? $ / ,
44 UserProfile2 : / ^ \/ ( @ [ \w \. \d - ] + ) \/ ( b l o g | p o s t s | c o m m e n t s | r e c o m m e n d e d | t r a n s f e r s | c u r a t i o n - r e w a r d s | a u t h o r - r e w a r d s | p e r m i s s i o n s | c r e a t e d | r e c e n t - r e p l i e s | f e e d | p a s s w o r d | f o l l o w e d | f o l l o w e r s | s e t t i n g s ) \/ ? $ / ,
5- UserRoute : / ^ ( @ [ \w \. \d / / - ] + ) / ,
65 UserEndPoints : / ^ ( b l o g | p o s t s | c o m m e n t s | r e c o m m e n d e d | t r a n s f e r s | c u r a t i o n - r e w a r d s | a u t h o r - r e w a r d s | p e r m i s s i o n s | c r e a t e d | r e c e n t - r e p l i e s | f e e d | p a s s w o r d | f o l l o w e d | f o l l o w e r s | s e t t i n g s ) $ / ,
76 CategoryFilters : / ^ \/ ( h o t | c r e a t e d | t r e n d i n g | a c t i v e | p r o m o t e d ) \/ ? $ / ig,
87 PostNoCategory : / ^ \/ ( @ [ \w \. \d - ] + ) \/ ( [ \w \d - ] + ) / ,
Original file line number Diff line number Diff line change @@ -396,11 +396,11 @@ export default class UserProfile extends React.Component {
396396 { about && < p className = "UserProfile__bio" > { about } </ p > }
397397 < div className = "UserProfile__stats" >
398398 < span >
399- < Link to = { `/@${ accountname } /followers` } > { followerCount ? translate ( 'follower_count' , { followerCount} ) : translate ( 'followers' ) } </ Link >
399+ < Link to = { `/@${ accountname } /followers` } > { translate ( 'follower_count' , { followerCount} ) } </ Link >
400400 { isMyAccount && < NotifiCounter fields = "follow" /> }
401401 </ span >
402402 < span > < Link to = { `/@${ accountname } ` } > { translate ( 'post_count' , { postCount : account . post_count || 0 } ) } </ Link > </ span >
403- < span > < Link to = { `/@${ accountname } /followed` } > { followingCount ? translate ( 'followed_count' , { followingCount} ) : translate ( 'following' ) } </ Link > </ span >
403+ < span > < Link to = { `/@${ accountname } /followed` } > { translate ( 'followed_count' , { followingCount} ) } </ Link > </ span >
404404 </ div >
405405 < p className = "UserProfile__info" >
406406 { location && < span > < Icon name = "location" /> { location } </ span > }
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ app.use(function *(next) {
5959 }
6060 }
6161 // // handle non-existing users endpoints with 404
62- if ( this . method === 'GET' && routeRegex . UserRoute . test ( this . url ) ) {
62+ if ( this . method === 'GET' && routeRegex . PostNoCategory . test ( this . url ) ) {
6363 const segments = this . url . split ( '/' ) ;
6464 if ( segments [ 2 ] && ! routeRegex . UserEndPoints . test ( segments [ 2 ] ) ) {
6565 this . status = 404 ;
You can’t perform that action at this time.
0 commit comments