Module: NewsmastMastodon::Overrides::HomeExtendedTimeline

Defined in:
app/lib/newsmast_mastodon/overrides/home_extended_timeline.rb

Constant Summary collapse

DEFAULT_STATUSES_LIMIT =
20

Instance Method Summary collapse

Instance Method Details

#home_statusesObject



16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'app/lib/newsmast_mastodon/overrides/home_extended_timeline.rb', line 16

def home_statuses
  .get(
    limit_param(DEFAULT_STATUSES_LIMIT),
    params[:max_id],
    params[:since_id],
    params[:min_id],
    ,
    truthy_param?(:exclude_direct_statuses) || truthy_param?(:exclude_directs),
    truthy_param?(:exclude_followed_tags),
    truthy_param?(:exclude_replies),
    truthy_param?(:grouped_admin_statuses)
  )
end