Seperated global and followed activity feed

This commit is contained in:
2018-11-12 14:24:00 +09:00
parent 76990417e4
commit f711cdb011
12 changed files with 114 additions and 20 deletions

View File

@ -16,9 +16,15 @@ func main() {
continue
}
draft, isDraftable := obj.(arn.HasDraft)
draft, isDraftable := obj.(arn.Draftable)
if isDraftable && draft.IsDraft {
if isDraftable && draft.GetIsDraft() {
continue
}
// We don't create activity entries for anything
// other than posts and threads.
if entry.ObjectType != "Post" && entry.ObjectType != "Thread" {
continue
}