Adding remote follow button
This commit is contained in:
13
app/models/remote_follow.rb
Normal file
13
app/models/remote_follow.rb
Normal file
@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class RemoteFollow
|
||||
include ActiveModel::Validations
|
||||
|
||||
attr_accessor :acct
|
||||
|
||||
validates :acct, presence: true
|
||||
|
||||
def initialize(attrs = {})
|
||||
@acct = attrs[:acct]
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user