huginn_bluesky_action_agent 0.1.0 → 0.1.10

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: 50c1c995ea565e6fd598b517b0e64629b3d821d34ff9de9fc1d6f2e4f04e77b7
4
- data.tar.gz: 81ad011f9fa72e374fcfaf554e49bef712bd4de8fc9229c9107fb88501dd7fc0
3
+ metadata.gz: c096715f9b1f210de89362145ed90f74afa7678f1f5d1068b617dc1dac17dce2
4
+ data.tar.gz: e673870a0de337f5cbcc109085cdfe69c754ab1a1b1c1683a330ecb1f13dbc13
5
5
  SHA512:
6
- metadata.gz: b5bebe8619973ed1191ee929c209114c4e287d1e1834bc9d6b393091dae1d45ad80bd520f06a7b12314f36bc563a083b25fe3d3b95d24f24594c73de54e359b1
7
- data.tar.gz: 743d3ed97aa1c2133744573e514ec61a5ea590e792e36ab7b38c00dfb7c4e9596712c9cb0f87746e6bdcb71814e286bd6c04346a3bcda29da91de1be39925968
6
+ metadata.gz: b5394b069bd616d9de544a82c44de4e0cd22034b6e59aae76a0a70fa418f23174a163f64eb33de1dd242749e6e1578aa6f9f0e10dd6730adc289146596d47f58
7
+ data.tar.gz: 9f14ff2b95a10a3c0333be9e62339c2bae27871859dc19f03f628a3ae8bbd3973cf2e5465156ef16a27ff9a1d285529e386f99917f07a6ed01a26547a5ed9efd
@@ -19,8 +19,6 @@ module Agents
19
19
 
20
20
  `cid` is mandatory to interact with the wanted feed.
21
21
 
22
- `author_did` is the author of the feed.
23
-
24
22
  `handle` is mandatory for authentication.
25
23
 
26
24
  `app_password` is mandatory for authentication.
@@ -42,7 +40,6 @@ module Agents
42
40
  {
43
41
  'uri' => "{{ post.uri }}",
44
42
  'cid' => "{{ post.cid }}",
45
- 'author_did' => "{{ post.author.did }}",
46
43
  'debug' => 'false',
47
44
  'repost' => 'false',
48
45
  'like' => 'true',
@@ -55,7 +52,6 @@ module Agents
55
52
 
56
53
  form_configurable :uri, type: :string
57
54
  form_configurable :cid, type: :string
58
- form_configurable :author_did, type: :string
59
55
  form_configurable :debug, type: :boolean
60
56
  form_configurable :repost, type: :boolean
61
57
  form_configurable :like, type: :boolean
@@ -72,10 +68,6 @@ module Agents
72
68
  errors.add(:base, "cid is a required field")
73
69
  end
74
70
 
75
- unless options['author_did'].present?
76
- errors.add(:base, "author_did is a required field")
77
- end
78
-
79
71
  unless options['app_password'].present?
80
72
  errors.add(:base, "app_password is a required field")
81
73
  end
@@ -177,7 +169,7 @@ module Agents
177
169
  request["Authorization"] = "Bearer #{generate_api_key(did)}"
178
170
  request.body = JSON.dump({
179
171
  "collection" => "app.bsky.feed.repost",
180
- "repo" => interpolated['author_did'],
172
+ "repo" => did,
181
173
  "record" => {
182
174
  "subject" => {
183
175
  "uri" => interpolated['uri'],
@@ -213,7 +205,7 @@ module Agents
213
205
  request["Authorization"] = "Bearer #{generate_api_key(did)}"
214
206
  request.body = JSON.dump({
215
207
  "collection" => "app.bsky.feed.like",
216
- "repo" => interpolated['author_did'],
208
+ "repo" => did,
217
209
  "record" => {
218
210
  "subject" => {
219
211
  "uri" => interpolated['uri'],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: huginn_bluesky_action_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Germain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-16 00:00:00.000000000 Z
11
+ date: 2023-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler