forked from mirrors/catstodon
Fix processing of min_id
and max_id
parameters in /api/v2/search
(#26927)
This commit is contained in:
parent
82015dbab6
commit
9693c271f1
1 changed files with 2 additions and 2 deletions
|
@ -39,12 +39,12 @@ class StatusesSearchService < BaseService
|
||||||
end
|
end
|
||||||
|
|
||||||
if @options[:min_id]
|
if @options[:min_id]
|
||||||
timestamp = Mastodon::Snowflake.to_time(@options[:min_id])
|
timestamp = Mastodon::Snowflake.to_time(@options[:min_id].to_i)
|
||||||
syntax_options << "after:\"#{timestamp.iso8601}\""
|
syntax_options << "after:\"#{timestamp.iso8601}\""
|
||||||
end
|
end
|
||||||
|
|
||||||
if @options[:max_id]
|
if @options[:max_id]
|
||||||
timestamp = Mastodon::Snowflake.to_time(@options[:max_id])
|
timestamp = Mastodon::Snowflake.to_time(@options[:max_id].to_i)
|
||||||
syntax_options << "before:\"#{timestamp.iso8601}\""
|
syntax_options << "before:\"#{timestamp.iso8601}\""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue