mastodon_command 0.1.1 → 0.1.5

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
- SHA1:
3
- metadata.gz: 18bb0b409e56cf1ae50ce94df0b2dc205022051c
4
- data.tar.gz: 9b0608dda16537402198e813e72726b44c50ee7f
2
+ SHA256:
3
+ metadata.gz: f2077c48aabc92462f3c405965f78f22ce36666ed200a2b91021f29f36e64ddc
4
+ data.tar.gz: 67fa13ea5e05e6916c6ed5587ed66be17ce92ef3d408da0eecfc90e377dc5df9
5
5
  SHA512:
6
- metadata.gz: 88996751076a9f64938d47a92cc8d6af21acb658ba2e41e43d6e7c5ad298a97ee135f4f779791b7ec3c165548f68654ce257fabe8ac2a4e5d466963c77022f40
7
- data.tar.gz: fe81f639adac9293213a140477fa585a706b3c1bce09d749fb39dbf619ec74ccb4e6507904e9318903039f2daea758f367613ecc6003a38f73649534d6781d6e
6
+ metadata.gz: 55fefd635f50009c58df38f62ab58d096e1a299a48529a976ca93d1b14f7e444e1bf5e7185b4b7dc6a08822c2e8b74542772891efd7b1b04d8efa0d105919b0b
7
+ data.tar.gz: 782acaed40e2b595bc4e792cd05b482ab8eade517af57cbb0aab3c9dc3cf24264d6802b9d1cf7a3e2db28ee837cc7c8df9363e479386a398fb79e314a82ded62
data/.gitignore CHANGED
File without changes
data/README.md CHANGED
File without changes
data/bin/console CHANGED
File without changes
data/bin/setup CHANGED
File without changes
File without changes
File without changes
File without changes
@@ -2,15 +2,18 @@ module ApiV1StatusesControllerPatch
2
2
  def create
3
3
  status = MastodonCommand.convert_toot(status_params[:status])
4
4
  @status = PostStatusService.new.call(current_user.account,
5
- status,
6
- status_params[:in_reply_to_id].blank? ? nil : Status.find(status_params[:in_reply_to_id]),
5
+ text: status,
6
+ thread: @thread,
7
7
  media_ids: status_params[:media_ids],
8
8
  sensitive: status_params[:sensitive],
9
9
  spoiler_text: status_params[:spoiler_text],
10
10
  visibility: status_params[:visibility],
11
+ scheduled_at: status_params[:scheduled_at],
11
12
  application: doorkeeper_token.application,
12
- idempotency: request.headers['Idempotency-Key'])
13
+ poll: status_params[:poll],
14
+ idempotency: request.headers['Idempotency-Key'],
15
+ with_rate_limit: true)
13
16
 
14
- render :show
17
+ render json: @status, serializer: @status.is_a?(ScheduledStatus) ? REST::ScheduledStatusSerializer : REST::StatusSerializer
15
18
  end
16
19
  end
@@ -1,3 +1,3 @@
1
1
  module MastodonCommand
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.5"
3
3
  end
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastodon_command
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - kenchiki
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-09 00:00:00.000000000 Z
11
+ date: 2022-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -77,7 +77,7 @@ files:
77
77
  homepage: http://nagai-galaxy.com/
78
78
  licenses: []
79
79
  metadata: {}
80
- post_install_message:
80
+ post_install_message:
81
81
  rdoc_options: []
82
82
  require_paths:
83
83
  - lib
@@ -92,9 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
- rubyforge_project:
96
- rubygems_version: 2.6.11
97
- signing_key:
95
+ rubygems_version: 3.2.32
96
+ signing_key:
98
97
  specification_version: 4
99
98
  summary: Mastodon Toot Command.
100
99
  test_files: []