fixes feed
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user