diff options
author | r <r@freesoftwareextremist.com> | 2020-01-31 03:38:49 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-01-31 03:38:49 +0000 |
commit | a981085260af2623bd4988e4b9c0052e2e3035eb (patch) | |
tree | 8b1f2f35274a2e5fee77f2498f0b7569dca18b7e /service/auth.go | |
parent | 6a6cc744b7d9ed1b57dc2e88cd22e73275d5dcbe (diff) | |
download | bloat-a981085260af2623bd4988e4b9c0052e2e3035eb.tar.gz bloat-a981085260af2623bd4988e4b9c0052e2e3035eb.zip |
Update user page
- Use the same page to display status and user list
- Add media only status list
Diffstat (limited to 'service/auth.go')
-rw-r--r-- | service/auth.go | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/service/auth.go b/service/auth.go index f127f5c..bc4ddbf 100644 --- a/service/auth.go +++ b/service/auth.go @@ -101,24 +101,6 @@ func (s *as) ServeRetweetedByPage(ctx context.Context, c *model.Client, id strin return s.Service.ServeRetweetedByPage(ctx, c, id) } -func (s *as) ServeFollowingPage(ctx context.Context, c *model.Client, id string, - maxID string, minID string) (err error) { - err = s.authenticateClient(ctx, c) - if err != nil { - return - } - return s.Service.ServeFollowingPage(ctx, c, id, maxID, minID) -} - -func (s *as) ServeFollowersPage(ctx context.Context, c *model.Client, id string, - maxID string, minID string) (err error) { - err = s.authenticateClient(ctx, c) - if err != nil { - return - } - return s.Service.ServeFollowersPage(ctx, c, id, maxID, minID) -} - func (s *as) ServeNotificationPage(ctx context.Context, c *model.Client, maxID string, minID string) (err error) { err = s.authenticateClient(ctx, c) @@ -128,13 +110,13 @@ func (s *as) ServeNotificationPage(ctx context.Context, c *model.Client, return s.Service.ServeNotificationPage(ctx, c, maxID, minID) } -func (s *as) ServeUserPage(ctx context.Context, c *model.Client, id string, - maxID string, minID string) (err error) { +func (s *as) ServeUserPage(ctx context.Context, c *model.Client, id string, + pageType string, maxID string, minID string) (err error) { err = s.authenticateClient(ctx, c) if err != nil { return } - return s.Service.ServeUserPage(ctx, c, id, maxID, minID) + return s.Service.ServeUserPage(ctx, c, id, pageType, maxID, minID) } func (s *as) ServeAboutPage(ctx context.Context, c *model.Client) (err error) { |