diff options
author | FChannel <> | 2021-08-01 18:35:00 -0700 |
---|---|---|
committer | FChannel <> | 2021-08-01 18:35:00 -0700 |
commit | 4450e8da252137b68f067dbc9cfaa5745a8804c5 (patch) | |
tree | 0759a113986b9adddbe4b1cab6e98a50cf5e13ef /database.go | |
parent | ca7a516f878bba8ab62ffda596ba603b26250917 (diff) |
fix inactive instance check and archive bug
Diffstat (limited to 'database.go')
-rw-r--r-- | database.go | 3 |
1 files changed, 1 insertions, 2 deletions
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) |