jekyll-activity-pub 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3fbfdfbefdfc0ddfb57beacd697d1d6ed3bace2b498219c3acc0b7552e0767c
4
- data.tar.gz: 5b19874a8e1690ef295b29c27e58c6977f513f71376f9bd494486e6803113d89
3
+ metadata.gz: 97d27c96572b06e65b60de7ebe02af9a78c234337720b34b0ca8c64e61dd0d7a
4
+ data.tar.gz: 431f6ef31f9c6aff9ab941512b20c4222fb1a6f9e287987a1e7484e944d8cbf0
5
5
  SHA512:
6
- metadata.gz: bdf78715b5de945d2457341c028f550e4592392a7e14334825fdd472baa658b9a0db59575d6a71407ac9c47e8e1ebfe212f27418d68693a43f425548e78f3855
7
- data.tar.gz: 036a7c2c6c1bd7b80344e48fd15dd03a94573f77f99c75062a93ecdfc5389b3e3429c91f651a46610548ccd1a33af8126c373b99dd653ef6cde2ab8cdafedf17
6
+ metadata.gz: 629f4e34286e1f4b0bf30b360341c63fd84eb39ec9ae343e18ab8f9876629e8364fe5cfb483cb9586dedd3e9fdacdc111d31e5a5776a52164e5d04aac07149f7
7
+ data.tar.gz: 11e489aaedb7a1dee0bc42359e06ef2f12106ee6a70140b3a4698aa162d5f048c3e9ff947c6ae343424a13a92efbed39d1f126ff09c1d8eb95938ad0d6e22245
@@ -137,7 +137,7 @@ module Jekyll
137
137
  raise NotificationError, "Public key at #{public_key_url} differs from local version"
138
138
  end
139
139
 
140
- actor_object = object_for(site.in_dest_dir(actor_url.sub(site.config['url'], '')))
140
+ actor_object = object_for(site.in_dest_dir(URI.parse(actor_url).path))
141
141
 
142
142
  # Create/Update inbox
143
143
  unless (response = inbox.create(actor_url, announce: announce?, manually_approves_followers: manually_approves_followers?)).ok?
@@ -407,8 +407,13 @@ module Jekyll
407
407
  begin
408
408
  rel = path_relative_to_dest(path)
409
409
  path = site.in_dest_dir(rel)
410
- data = JSON.parse(File.read(path)) if File.exist? path
411
- data ||= { 'id' => status(path)['id'] }
410
+ if File.exist? path
411
+ data = JSON.parse(File.read(path))
412
+ else
413
+ Jekyll.logger.warn 'ActivityPub:', "#{path} doesn't exist!"
414
+
415
+ data = { 'id' => status(path)['id'] }
416
+ end
412
417
 
413
418
  PseudoObject.new(url: rel, site: site, relative_path: rel, data: data)
414
419
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-activity-pub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-23 00:00:00.000000000 Z
11
+ date: 2024-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: distributed-press-api-client
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  requirements: []
227
- rubygems_version: 3.3.26
227
+ rubygems_version: 3.3.27
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: ActivityPub support for Jekyll