distributed-press-api-client 0.5.0rc3 → 0.5.0rc4

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: 5e02ff077d2abf2abdfc55a7d71e425c4b1a951558b036dbb247dfc369518cf1
4
- data.tar.gz: 0ec16a94b2363883abca06b6bdd46d8f593bbc01cc32801c40d8951b0d6815a3
3
+ metadata.gz: 5c9c267bf382bc379f9cbcb034747c09eac71af0b8873e3e2b4c45c60120bcf7
4
+ data.tar.gz: b2ffbec67481d7d48687653e2fb7ed76f8bd7f2a587d807b73f3133ef842a655
5
5
  SHA512:
6
- metadata.gz: 4d3e9f5f978c5761c416f9817b598c320c68315609f626cdfccc13c765b5b198d1fd0d0765614ac65db613abc47891209ada12015e9f05bce0f3c37e4c3afaa6
7
- data.tar.gz: 06d08f6ca0419ff3a0b33b682bf8d99e15c0a93cd9e7c49a0df226287040e768d5e020634d35d58bf58090826f6fba903bde17b26c6d805569b1acaa4b0b82c9
6
+ metadata.gz: d06dc678b4bbceb7fa5c061ad3de5fa943108367ddbe48875a0eed24b9fa4e87b6f8af3aeca00d9c29453c75979c97eaf91afde98b0486028edf5cf0ffdad867
7
+ data.tar.gz: 1a67f604b966d5973df3bde6c620d0e3d6aeffbdf57ac723128571e3f9aa784745f1871a3eb6de5f873fb2d617f8a5e95b3b2a93d60b4bdb527e1e50393b80bb
@@ -25,12 +25,14 @@ class DistributedPress
25
25
  #
26
26
  # @param actor_url [String] The URL where the Actor profile is hosted
27
27
  # @param announce [Boolean] Automatically announce new accounts
28
+ # @param manually_approves_followers [Boolean] Automatically accept follow requests
28
29
  # @return [HTTParty::Response]
29
- def create(actor_url, announce = false)
30
+ def create(actor_url, announce: false, manually_approves_followers: false)
30
31
  inbox_body = {
31
32
  'actorUrl' => actor_url,
32
33
  'publicKeyId' => "#{actor_url}#main-key",
33
34
  'announce' => announce,
35
+ 'manuallyApprovesFollowers' => manually_approves_followers,
34
36
  'keypair' => {
35
37
  'publicKeyPem' => client.public_key.public_to_pem,
36
38
  'privateKeyPem' => client.private_key.export
@@ -3,5 +3,5 @@
3
3
  # API client
4
4
  class DistributedPress
5
5
  # Version
6
- VERSION = '0.5.0rc3'
6
+ VERSION = '0.5.0rc4'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: distributed-press-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0rc3
4
+ version: 0.5.0rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-17 00:00:00.000000000 Z
11
+ date: 2024-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable