aboutsummaryrefslogtreecommitdiff
path: root/cacheDatabase.go
diff options
context:
space:
mode:
authorFChannel <>2021-06-24 23:45:18 -0700
committerFChannel <>2021-06-24 23:45:18 -0700
commitef7eb7330018c84a44fb24711982c25f51749d2e (patch)
tree8da97fce2dad238b994eede1f0b9ce2bf9b3a7ff /cacheDatabase.go
parentb4f7d00ad9d13f96323366ded2eb7702e37f6e52 (diff)
changed activitystream formating for objects to better align with pleromas actor field
Diffstat (limited to 'cacheDatabase.go')
-rw-r--r--cacheDatabase.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cacheDatabase.go b/cacheDatabase.go
index c234520..94f88d2 100644
--- a/cacheDatabase.go
+++ b/cacheDatabase.go
@@ -79,7 +79,7 @@ func WriteActivitytoCache(db *sql.DB, obj ObjectBase) {
query = `insert into cacheactivitystream (id, type, name, content, published, updated, attributedto, actor, tripcode, sensitive) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)`
- _, e := db.Exec(query, obj.Id ,obj.Type, obj.Name, obj.Content, obj.Published, obj.Published, obj.AttributedTo, obj.Actor.Id, obj.TripCode, obj.Sensitive)
+ _, e := db.Exec(query, obj.Id ,obj.Type, obj.Name, obj.Content, obj.Published, obj.Published, obj.AttributedTo, obj.Actor, obj.TripCode, obj.Sensitive)
if e != nil{
fmt.Println("error inserting new activity cache")
@@ -110,7 +110,7 @@ func WriteActivitytoCacheWithAttachment(db *sql.DB, obj ObjectBase, attachment O
query = `insert into cacheactivitystream (id, type, name, content, attachment, preview, published, updated, attributedto, actor, tripcode, sensitive) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12)`
- _, e := db.Exec(query, obj.Id ,obj.Type, obj.Name, obj.Content, attachment.Id, preview.Id, obj.Published, obj.Published, obj.AttributedTo, obj.Actor.Id, obj.TripCode, obj.Sensitive)
+ _, e := db.Exec(query, obj.Id ,obj.Type, obj.Name, obj.Content, attachment.Id, preview.Id, obj.Published, obj.Published, obj.AttributedTo, obj.Actor, obj.TripCode, obj.Sensitive)
if e != nil{
fmt.Println("error inserting new activity with attachment cache")