fixes feed

This commit is contained in:
Christian Beutel
2025-07-11 17:13:30 +02:00
parent 237d12bfec
commit e8c7e7721a
6 changed files with 51 additions and 35 deletions

View File

@@ -25,3 +25,13 @@ func InsertIntoFeed(app core.App, actorId string, authorId string, itemId string
return record, app.Save(record)
}
func DeleteFromFeed(app core.App, itemId string) error {
record, err := app.FindFirstRecordByData("feed", "item", itemId)
if err != nil {
return err
}
return app.Delete(record)
}