From 4450e8da252137b68f067dbc9cfaa5745a8804c5 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 1 Aug 2021 18:35:00 -0700 Subject: fix inactive instance check and archive bug --- database.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'database.go') diff --git a/database.go b/database.go index d0b6fcc..f142ea2 100644 --- a/database.go +++ b/database.go @@ -1834,7 +1834,7 @@ func IsInactiveTimestamp(db *sql.DB, timeStamp string) bool { } func ArchivePosts(db *sql.DB, actor Actor) { - if actor.Id != "" { + if actor.Id != "" && actor.Id != Domain { col := GetAllActorArchiveDB(db, actor.Id, 165) for _, e := range col.OrderedItems { for _, k := range e.Replies.OrderedItems { @@ -1901,7 +1901,6 @@ func GetActorCollectionDBType(db *sql.DB, actorId string, nType string) Collecti post.Replies = &replies post.Replies.TotalItems, post.Replies.TotalImgs = GetObjectRepliesCount(db, post) - post.Attachment = GetObjectAttachment(db, attachID) post.Preview = GetObjectPreview(db, previewID) -- cgit v1.2.3