mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 18:40:12 -05: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 :account
|
||||||
belongs_to :relationship_severance_event
|
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!
|
before_create :set_relationships_count!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user