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 +4 -4
- data/lib/jekyll/activity_pub/notifier.rb +8 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97d27c96572b06e65b60de7ebe02af9a78c234337720b34b0ca8c64e61dd0d7a
|
4
|
+
data.tar.gz: 431f6ef31f9c6aff9ab941512b20c4222fb1a6f9e287987a1e7484e944d8cbf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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
|
-
|
411
|
-
|
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.
|
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-
|
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.
|
227
|
+
rubygems_version: 3.3.27
|
228
228
|
signing_key:
|
229
229
|
specification_version: 4
|
230
230
|
summary: ActivityPub support for Jekyll
|