✨ Fetching other fediverse timeline
This commit is contained in:
25
pkg/internal/models/fediverse_posts.go
Normal file
25
pkg/internal/models/fediverse_posts.go
Normal file
@ -0,0 +1,25 @@
|
||||
package models
|
||||
|
||||
import "git.solsynth.dev/hypernet/nexus/pkg/nex/cruda"
|
||||
|
||||
type FediversePost struct {
|
||||
cruda.BaseModel
|
||||
|
||||
Identifier string `json:"identifier" gorm:"uniqueIndex"`
|
||||
Origin string `json:"origin"`
|
||||
Content string `json:"content"`
|
||||
Language string `json:"language"`
|
||||
Images []string `json:"images"`
|
||||
|
||||
User FediverseUser `json:"user"`
|
||||
UserID uint `json:"user_id"`
|
||||
}
|
||||
|
||||
type FediverseUser struct {
|
||||
cruda.BaseModel
|
||||
|
||||
Identifier string `json:"identifier" gorm:"uniqueIndex"`
|
||||
Origin string `json:"origin"`
|
||||
Name string `json:"name"`
|
||||
Nick string `json:"nick"`
|
||||
}
|
Reference in New Issue
Block a user