Notification entity
This module defines a Hunter.Notification struct.
Fields
id- The notification IDtype- One of: "mention", "status", "reblog", "follow", "follow_request", "favourite", "poll", "update", "admin.sign_up", "admin.report", "severed_relationships", "moderation_warning", "quote", "quoted_update"created_at- The time the notification was createdgroup_key- Group key shared by similar notifications, used by grouped notificationsaccount- TheHunter.Accountsending the notification to the userstatus- TheHunter.Statusassociated with the notification, if applicablereport- TheHunter.Reportassociated with an "admin.report" notificationevent- Summary of the event that caused a "severed_relationships" notification, if applicablemoderation_warning- The moderation warning that caused a "moderation_warning" notification, if applicable
Summary
Types
@type t() :: %Hunter.Notification{ account: Hunter.Account.t(), created_at: String.t(), event: map() | nil, group_key: String.t() | nil, id: String.t(), moderation_warning: map() | nil, report: Hunter.Report.t() | nil, status: Hunter.Status.t(), type: String.t() }