Class: Jekyll::ActivityPub::Following
- Inherits:
-
OrderedCollection
- Object
- Page
- OrderedCollection
- Jekyll::ActivityPub::Following
- Defined in:
- lib/jekyll/activity_pub/following.rb
Overview
An empty collection of followed actors
Instance Method Summary collapse
-
#initialize(site, actor, base = '', dir = '', name = 'following.jsonld') ⇒ Following
constructor
Initialize with default data.
Methods inherited from OrderedCollection
#items_to_links!, #order_items!, #paginate!, #read_yaml
Methods included from Helper
#content, #generate_excerpt?, #hook_owner, #locale, #place_in_layout?, #pruned_data, #render_with_liquid?, #to_json, #to_liquid, #trigger_hooks
Constructor Details
#initialize(site, actor, base = '', dir = '', name = 'following.jsonld') ⇒ Following
Initialize with default data
16 17 18 19 20 21 22 |
# File 'lib/jekyll/activity_pub/following.rb', line 16 def initialize(site, actor, base = '', dir = '', name = 'following.jsonld') super(site, base, dir, name) actor.data['following'] = absolute_url(url) trigger_hooks :post_init end |