Add audit logging to Relays (#32819)
This commit is contained in:
parent
88512220bb
commit
a34edc211f
5 changed files with 22 additions and 0 deletions
|
@ -25,6 +25,10 @@ class Relay < ApplicationRecord
|
|||
|
||||
alias enabled? accepted?
|
||||
|
||||
def to_log_human_identifier
|
||||
inbox_url
|
||||
end
|
||||
|
||||
def enable!
|
||||
activity_id = ActivityPub::TagManager.instance.generate_uri_for(nil)
|
||||
payload = Oj.dump(follow_activity(activity_id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue