Merge remote-tracking branch 'parent/main' into kb_migration
This commit is contained in:
commit
a8419d83ba
12 changed files with 98 additions and 64 deletions
|
@ -43,12 +43,12 @@ class StatusesSearchService < BaseService
|
|||
end
|
||||
|
||||
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}\""
|
||||
end
|
||||
|
||||
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}\""
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue