Class: Jekyll::ActivityPub::Following

Inherits:
OrderedCollection show all
Defined in:
lib/jekyll/activity_pub/following.rb

Overview

An empty collection of followed actors

Instance Method Summary collapse

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

Parameters:



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