jekyll-activity-pub 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bbfcc9584215764c7097b8dbd857fba16fb9638676ef80a646dd77021f9b72c
4
- data.tar.gz: a7d019c0613766a3c107e9aa24775032e1721348a4057d62424da9aa48e8340a
3
+ metadata.gz: 3e61984240bfd3db494bd595ba46d733ac9449eea47c6f822f772e8f3745fd1f
4
+ data.tar.gz: 245acdaf13711a3529dc8b9f5bccfb92e42a717cb0da43970d97409df9e8b7b6
5
5
  SHA512:
6
- metadata.gz: b9556ee3d0b03bb45c9dd051c24edb59915056d44886d56b15b7c6a4cdfed1520e28f3aa955769e8b5d3592f71dd704ab9328b148f22ddd77f6f9be577e666c0
7
- data.tar.gz: 89bc2152540aeaeec52c5363afa646d9318a1cf9c34f2d732fcc705e785b359dce620ef98e2175b7f0c104ba86d74600b0a22fb4a8990be900d9d2c2fa74a077
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
- unless (response = inbox.create(actor_url)).ok?
127
- raise NotificationError, "Couldn't create inbox (#{response.code}: #{response.message})"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-activity-pub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutty