mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 04:25:06 +01:00
Change internal streaming payloads to stringified IDs as well
Per https://github.com/tootsuite/mastodon/pull/5019#issuecomment-330736452 we need these changes to send deleted status IDs as strings, not integers.
This commit is contained in:
parent
8b7e8dcba1
commit
591a9af356
@ -18,7 +18,7 @@ class BatchedRemoveStatusService < BaseService
|
|||||||
@stream_entry_batches = []
|
@stream_entry_batches = []
|
||||||
@salmon_batches = []
|
@salmon_batches = []
|
||||||
@activity_json_batches = []
|
@activity_json_batches = []
|
||||||
@json_payloads = statuses.map { |s| [s.id, Oj.dump(event: :delete, payload: s.id)] }.to_h
|
@json_payloads = statuses.map { |s| [s.id, Oj.dump(event: :delete, payload: s.id.to_s)] }.to_h
|
||||||
@activity_json = {}
|
@activity_json = {}
|
||||||
@activity_xml = {}
|
@activity_xml = {}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ class RemoveStatusService < BaseService
|
|||||||
include StreamEntryRenderer
|
include StreamEntryRenderer
|
||||||
|
|
||||||
def call(status)
|
def call(status)
|
||||||
@payload = Oj.dump(event: :delete, payload: status.id)
|
@payload = Oj.dump(event: :delete, payload: status.id.to_s)
|
||||||
@status = status
|
@status = status
|
||||||
@account = status.account
|
@account = status.account
|
||||||
@tags = status.tags.pluck(:name).to_a
|
@tags = status.tags.pluck(:name).to_a
|
||||||
|
Loading…
Reference in New Issue
Block a user