Favouriting works, reblogging is a little broken because of <Status>
This commit is contained in:
parent
c2a4d70265
commit
595c8dda60
10 changed files with 145 additions and 19 deletions
|
@ -75,7 +75,7 @@ class Account < ApplicationRecord
|
|||
end
|
||||
|
||||
def ping!(atom_url, hubs)
|
||||
return unless local?
|
||||
return unless local? && !Rails.env.development?
|
||||
OStatus2::Publication.new(atom_url, hubs).publish
|
||||
end
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@ class Favourite < ApplicationRecord
|
|||
belongs_to :account, inverse_of: :favourites
|
||||
belongs_to :status, inverse_of: :favourites
|
||||
|
||||
validates :status_id, uniqueness: { scope: :account_id }
|
||||
|
||||
def verb
|
||||
:favorite
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue