jekyll-activity-pub 0.2.1 → 0.2.2
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 +7 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e61984240bfd3db494bd595ba46d733ac9449eea47c6f822f772e8f3745fd1f
|
4
|
+
data.tar.gz: 245acdaf13711a3529dc8b9f5bccfb92e42a717cb0da43970d97409df9e8b7b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6069172361e462639d19b64f2554659b13cd3c9fa58765dcc750b72e0c01761ee30bfd8655f0da8d79c85873481096ca2fb99e713f9b8794c5345a4866246d3
|
7
|
+
data.tar.gz: 16e3b5e5ae50c6fbf3487f904acdb9e2b0f3f5e93f3ac942cb5209aaa5dd0275ebccb821205c6e3c118d5349ad55d824b7ce71d2c0b91b312a4d1155d22ac1f7
|
@@ -123,8 +123,13 @@ module Jekyll
|
|
123
123
|
actor_object = object_for(site.in_dest_dir(actor_url.sub(site.config['url'], '')))
|
124
124
|
|
125
125
|
# Create inbox
|
126
|
-
|
127
|
-
|
126
|
+
#
|
127
|
+
# @todo Updating/Key rotation seems broken for now
|
128
|
+
# @see {https://github.com/hyphacoop/social.distributed.press/issues/51}
|
129
|
+
unless inbox.get.ok?
|
130
|
+
unless (response = inbox.create(actor_url)).ok?
|
131
|
+
raise NotificationError, "Couldn't create/update inbox (#{response.code}: #{response.message})"
|
132
|
+
end
|
128
133
|
end
|
129
134
|
|
130
135
|
# Remove notifications already performed and notify
|