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 +4 -4
- data/lib/distributed_press/v1/social/inbox.rb +3 -1
- data/lib/distributed_press/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c9c267bf382bc379f9cbcb034747c09eac71af0b8873e3e2b4c45c60120bcf7
|
4
|
+
data.tar.gz: b2ffbec67481d7d48687653e2fb7ed76f8bd7f2a587d807b73f3133ef842a655
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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.
|
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-
|
11
|
+
date: 2024-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|