mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-18 04:19:27 +00:00
Fix error in severed relationship event serializer (#29670)
This commit is contained in:
parent
98a2bb8be2
commit
f4d753aedf
|
@ -16,7 +16,13 @@ class AccountRelationshipSeveranceEvent < ApplicationRecord
|
|||
belongs_to :account
|
||||
belongs_to :relationship_severance_event
|
||||
|
||||
delegate :severed_relationships, :type, :target_name, :purged?, to: :relationship_severance_event, prefix: false
|
||||
delegate :severed_relationships,
|
||||
:type,
|
||||
:target_name,
|
||||
:purged,
|
||||
:purged?,
|
||||
to: :relationship_severance_event,
|
||||
prefix: false
|
||||
|
||||
before_create :set_relationships_count!
|
||||
|
||||
|
|
Loading…
Reference in a new issue