Favouriting works, reblogging is a little broken because of <Status>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user