Commit 56b06399 authored by zauberstuhl's avatar zauberstuhl

Add extra type contacts to model

parent 47724bb5
......@@ -35,6 +35,7 @@ type Contact struct {
Receiving bool
type Contacts []Contact
func (c *Contact) Cast(entity *federation.EntityRequest) (err error) {
var (
recipient User
......@@ -42,7 +42,7 @@ type Person struct {
PodID uint `gorm:"size:4"`
Profile Profile `json:",omitempty"`
Contacts []Contact `json:",omitempty"`
Contacts Contacts `json:",omitempty"`
func (person *Person) FindByID(id uint) (err error) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment