Module: NewsmastMastodon::Overrides::PublicExtendedTimeline
- Defined in:
- app/lib/newsmast_mastodon/overrides/public_extended_timeline.rb
Constant Summary collapse
- PERMITTED_PARAMS =
%i(local remote limit only_media with_reblogs with_replies grouped_admin_statuses).freeze
Instance Method Summary collapse
Instance Method Details
#public_feed ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/lib/newsmast_mastodon/overrides/public_extended_timeline.rb', line 11 def public_feed PublicFeed.new( current_account, local: truthy_param?(:local), remote: truthy_param?(:remote), only_media: truthy_param?(:only_media), with_reblogs: truthy_param?(:with_reblogs), with_replies: truthy_param?(:with_replies), grouped_admin_statuses: truthy_param?(:grouped_admin_statuses) ) end |