// Post post an activity to the outbox. The activity is simply stored
// so that it may be retrieved by the Activies function.
Post post an activity to the outbox. The activity is simply stored
so that it may be retrieved by the Activies function.
// Post post an activity to the outbox . The activity is simply stored // so that it may be retrieved by the Activies function .
func (m *Outbox) Post(activity *vocab.ActivityType, _ ...*url.URL) (*url.URL, error) {
	if m.err != nil {
		return nil, m.err
	}
	m.mutex.Lock()
	defer m.mutex.Unlock()
	m.activities = append(m.activities, activity)
	return m.activityID, nil
}
func ( m * Outbox ) Post ( activity * vocab . ActivityType , _ ... * url . URL ) ( * url . URL , error ) { if m . err != nil { return nil , m . err } m . mutex . Lock ( ) defer m . mutex . Unlock ( ) m . activities = append ( m . activities , activity ) return m . activityID , nil }
Post post an activity to the outbox.
Post post an activity to the outbox .