jekyll-activity-pub 0.3.3 → 0.3.5
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a0649a05267816dcb64f87c8f3d8d3ae1d973a6813fbc40cd78da31c7563ffca
|
|
4
|
+
data.tar.gz: c5761c4c2aebde10f1f00c887cb1c835163b3fd002a42dee8bf28cd9e4218d8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abb7c0e856a8167d813a32211e4458dd63538ea4aef946cdf419e465a25ce8f2de69a456889288f2bea97e630162bb87839e0dda7200e919cc8784cfee77f348
|
|
7
|
+
data.tar.gz: 2658e3ef2ad3d78a931ee5ba43cd1cff9fcedac4637a2a88aa8084e3844d6e60e5882d872a20223c23fcd074f443bfef7725528da74a706237b4de8a35b67ee8
|
|
@@ -118,6 +118,8 @@ module Jekyll
|
|
|
118
118
|
@attachments ||= [].tap do |array|
|
|
119
119
|
case (image = doc.data['image'])
|
|
120
120
|
when Hash
|
|
121
|
+
next if image['path'].nil? || image['path'].strip.empty?
|
|
122
|
+
|
|
121
123
|
array << Document.new(site, image['path'], image['description'])
|
|
122
124
|
when String
|
|
123
125
|
array << Document.new(site, image, summary)
|
|
@@ -61,13 +61,13 @@ module Jekyll
|
|
|
61
61
|
|
|
62
62
|
mutable false
|
|
63
63
|
|
|
64
|
-
# Iterate over all items of a collection
|
|
64
|
+
# Iterate over all public items of a collection
|
|
65
65
|
#
|
|
66
66
|
# @return [Array]
|
|
67
67
|
def all_items
|
|
68
68
|
return nil unless @obj.respond_to?(:each)
|
|
69
69
|
|
|
70
|
-
@all_items ||= @obj.each.to_a.uniq { |x| x.uri }
|
|
70
|
+
@all_items ||= @obj.each.to_a.uniq { |x| x.uri }.reject(&:private?)
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
# This means we could dereference the object, Liquid can use it to
|
|
@@ -74,7 +74,10 @@ Jekyll::Hooks.register %i[actor activity outbox following create update delete],
|
|
|
74
74
|
|
|
75
75
|
if url
|
|
76
76
|
formats.each do |format|
|
|
77
|
-
url << Jekyll::ActivityPub::Link.new(site, uri.to_s, 'alternate', format)
|
|
77
|
+
url << Jekyll::ActivityPub::Link.new(site, uri.to_s, 'alternate', format).tap do |link|
|
|
78
|
+
# XXX: Mastodon uses mimeType (?)
|
|
79
|
+
link.data['mimeType'] = link.data['mediaType']
|
|
80
|
+
end
|
|
78
81
|
end
|
|
79
82
|
end
|
|
80
83
|
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.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sutty
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-03-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: distributed-press-api-client
|