mastodon_command 0.1.4 → 0.1.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
- SHA1:
3
- metadata.gz: 23715203bd2ac91612472b633801d91ae8eaa16f
4
- data.tar.gz: ec72c885ae3c34388d35e6287cc269d36af4347e
2
+ SHA256:
3
+ metadata.gz: f2077c48aabc92462f3c405965f78f22ce36666ed200a2b91021f29f36e64ddc
4
+ data.tar.gz: 67fa13ea5e05e6916c6ed5587ed66be17ce92ef3d408da0eecfc90e377dc5df9
5
5
  SHA512:
6
- metadata.gz: 30f8f076e041837587b47a143c6e0f062b368387ff1df479cff2c22bcc517c758e24e61ea112827b5e1a903bb4a245c3853669a5187a63fe5df2492580f03519
7
- data.tar.gz: 72245f8488bd01e0e0a06fc4f81847e3559eb82ffcf0ce899a380d60535982053ef932942e343f34d74a255e0a4a55e9d981ac88aae3297e65d3fd1872ef04f3
6
+ metadata.gz: 55fefd635f50009c58df38f62ab58d096e1a299a48529a976ca93d1b14f7e444e1bf5e7185b4b7dc6a08822c2e8b74542772891efd7b1b04d8efa0d105919b0b
7
+ data.tar.gz: 782acaed40e2b595bc4e792cd05b482ab8eade517af57cbb0aab3c9dc3cf24264d6802b9d1cf7a3e2db28ee837cc7c8df9363e479386a398fb79e314a82ded62
@@ -3,7 +3,7 @@ module ApiV1StatusesControllerPatch
3
3
  status = MastodonCommand.convert_toot(status_params[:status])
4
4
  @status = PostStatusService.new.call(current_user.account,
5
5
  text: status,
6
- thread: status_params[:in_reply_to_id].blank? ? nil : Status.find(status_params[:in_reply_to_id]),
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],
@@ -11,7 +11,8 @@ module ApiV1StatusesControllerPatch
11
11
  scheduled_at: status_params[:scheduled_at],
12
12
  application: doorkeeper_token.application,
13
13
  poll: status_params[:poll],
14
- idempotency: request.headers['Idempotency-Key'])
14
+ idempotency: request.headers['Idempotency-Key'],
15
+ with_rate_limit: true)
15
16
 
16
17
  render json: @status, serializer: @status.is_a?(ScheduledStatus) ? REST::ScheduledStatusSerializer : REST::StatusSerializer
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module MastodonCommand
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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.4
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: 2019-06-23 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: []