mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-11-01 21:21:11 +01:00
0717d9b3e6
- Rename Mastodon::TimestampIds into Mastodon::Snowflake for clarity - Skip for statuses coming from inbox, aka delivered in real-time - Skip for statuses that claim to be from the future
20 lines
369 B
Ruby
20 lines
369 B
Ruby
# frozen_string_literal: true
|
|
|
|
class OStatus::Activity::General < OStatus::Activity::Base
|
|
def specialize
|
|
special_class&.new(@xml, @account, @options)
|
|
end
|
|
|
|
private
|
|
|
|
def special_class
|
|
case verb
|
|
when :post
|
|
OStatus::Activity::Post
|
|
when :share
|
|
OStatus::Activity::Share
|
|
when :delete
|
|
OStatus::Activity::Deletion
|
|
end
|
|
end
|
|
end
|