2020-01-05 06:36:28 +00:00
|
|
|
class Form::AccountSubscribe
|
|
|
|
include ActiveModel::Model
|
|
|
|
include ActiveModel::Attributes
|
|
|
|
|
|
|
|
attribute :id, :integer
|
|
|
|
attribute :acct, :string
|
|
|
|
attribute :show_reblogs, :boolean, default: true
|
|
|
|
attribute :list_id, :integer
|
2020-11-15 06:57:58 +00:00
|
|
|
attribute :media_only, :boolean, default: false
|
2020-01-05 06:36:28 +00:00
|
|
|
|
|
|
|
def acct=(val)
|
|
|
|
super(val.to_s.strip.gsub(/\A@/, ''))
|
|
|
|
end
|
|
|
|
end
|