Adding remote follow button
This commit is contained in:
parent
91c5426455
commit
8f47f6a7ec
11 changed files with 114 additions and 20 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue