diff --git a/config/config.go b/config/config.go index 7b64e02..0fce241 100644 --- a/config/config.go +++ b/config/config.go @@ -140,6 +140,7 @@ type ( // Federation Federation bool `ini:"federation"` PublicStats bool `ini:"public_stats"` + NotesOnly bool `ini:"notes_only"` // Access Private bool `ini:"private"` diff --git a/posts.go b/posts.go index 8af0c8c..44b215c 100644 --- a/posts.go +++ b/posts.go @@ -1133,7 +1133,7 @@ func (p *PublicPost) CanonicalURL(hostName string) string { func (p *PublicPost) ActivityObject(app *App) *activitystreams.Object { cfg := app.cfg var o *activitystreams.Object - if strings.Index(p.Content, "\n\n") == -1 { + if cfg.App.NotesOnly || strings.Index(p.Content, "\n\n") == -1 { o = activitystreams.NewNoteObject() } else { o = activitystreams.NewArticleObject()