in visibilitylib/src/main/scala/com/twitter/visibility/generators/TombstoneGenerator.scala [67:93]
private def epitaphToTombstoneReason(epitaph: Epitaph): TombstoneReason = {
epitaph match {
case Epitaph.Deleted => TombstoneReason.Deleted
case Epitaph.Bounced => TombstoneReason.Bounced
case Epitaph.BounceDeleted => TombstoneReason.BounceDeleted
case Epitaph.Protected => TombstoneReason.ProtectedAuthor
case Epitaph.Suspended => TombstoneReason.SuspendedAuthor
case Epitaph.BlockedBy => TombstoneReason.AuthorBlocksViewer
case Epitaph.SuperFollowsContent => TombstoneReason.ExclusiveTweet
case Epitaph.Underage => TombstoneReason.NsfwViewerIsUnderage
case Epitaph.NoStatedAge => TombstoneReason.NsfwViewerHasNoStatedAge
case Epitaph.LoggedOutAge => TombstoneReason.NsfwLoggedOut
case Epitaph.Deactivated => TombstoneReason.DeactivatedAuthor
case Epitaph.CommunityTweetHidden => TombstoneReason.CommunityTweetHidden
case Epitaph.CommunityTweetCommunityIsSuspended =>
TombstoneReason.CommunityTweetCommunityIsSuspended
case Epitaph.DevelopmentOnly => TombstoneReason.DevelopmentOnly
case Epitaph.AdultMedia => TombstoneReason.AdultMedia
case Epitaph.ViolentMedia => TombstoneReason.ViolentMedia
case Epitaph.OtherSensitiveMedia => TombstoneReason.OtherSensitiveMedia
case Epitaph.DmcaWithheldMedia => TombstoneReason.DmcaWithheldMedia
case Epitaph.LegalDemandsWithheldMedia => TombstoneReason.LegalDemandsWithheldMedia
case Epitaph.LocalLawsWithheldMedia => TombstoneReason.LocalLawsWithheldMedia
case Epitaph.ToxicReplyFiltered => TombstoneReason.ReplyFiltered
case _ => TombstoneReason.Unspecified
}
}