aboutsummaryrefslogtreecommitdiff
path: root/database.go
diff options
context:
space:
mode:
Diffstat (limited to 'database.go')
-rw-r--r--database.go3
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)