Some checks failed
/ docker (push) Failing after 2m57s
- Read handler for create activities (notes only so far) - Read handler for note objects - Structure laid out for other objects, activities and collections - DB structure for activities created - Update access logging TODO: Create collections type in DB to describe a collection group
23 lines
484 B
Go
23 lines
484 B
Go
package activitypub
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
// Announce is boost
|
|
|
|
type activityAnnounceOut struct {
|
|
Context any `json:"@context,omitempty"`
|
|
Id string
|
|
Type string // Always "Announce"
|
|
Actor string // The one doing the boost
|
|
Published time.Time
|
|
To []string
|
|
CC []string
|
|
Object string // Link to object being boosted
|
|
}
|
|
|
|
func announceFromStorage(ctx context.Context, id string) (*activityAnnounceOut, error) {
|
|
panic("not implemented")
|
|
}
|