Follow follows the provided feed (which must be a FlatFeed), applying the provided FollowFeedOptions, if any.
(ctx context.Context, feed *FlatFeed, opts ...FollowFeedOption)
| 94 | // Follow follows the provided feed (which must be a FlatFeed), applying the provided FollowFeedOptions, |
| 95 | // if any. |
| 96 | func (f *feed) Follow(ctx context.Context, feed *FlatFeed, opts ...FollowFeedOption) (*BaseResponse, error) { |
| 97 | followOptions := &followFeedOptions{ |
| 98 | Target: fmt.Sprintf("%s:%s", feed.Slug(), feed.UserID()), |
| 99 | ActivityCopyLimit: defaultActivityCopyLimit, |
| 100 | } |
| 101 | for _, opt := range opts { |
| 102 | opt(followOptions) |
| 103 | } |
| 104 | return f.client.follow(ctx, f, followOptions) |
| 105 | } |
| 106 | |
| 107 | // GetFollowing returns the list of the feeds following the feed, applying the provided FollowingOptions, |
| 108 | // if any. |