mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-12 05:27:29 -06:00
Notifications (#34)
Notifications working for: * Mentions * Faves * New follow requests * New followers
This commit is contained in:
parent
e670c32a91
commit
40add68691
42 changed files with 2096 additions and 1194 deletions
|
|
@ -41,5 +41,5 @@ type Notification struct {
|
|||
// OPTIONAL
|
||||
|
||||
// Status that was the object of the notification, e.g. in mentions, reblogs, favourites, or polls.
|
||||
Status *Status `json:"status"`
|
||||
Status *Status `json:"status,omitempty"`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ type Status struct {
|
|||
// Is this status marked as sensitive content?
|
||||
Sensitive bool `json:"sensitive"`
|
||||
// Subject or summary line, below which status content is collapsed until expanded.
|
||||
SpoilerText string `json:"spoiler_text,omitempty"`
|
||||
SpoilerText string `json:"spoiler_text"`
|
||||
// Visibility of this status.
|
||||
Visibility Visibility `json:"visibility"`
|
||||
// Primary language of this status. (ISO 639 Part 1 two-letter language code)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue