mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-10 08:17:30 -06:00
federate status deletes properly
This commit is contained in:
parent
5d2b69c256
commit
197ef03ead
19 changed files with 154 additions and 143 deletions
|
|
@ -56,5 +56,11 @@ func (m *Module) StatusDELETEHandler(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
// the status was already gone/never existed
|
||||
if mastoStatus == nil {
|
||||
c.JSON(http.StatusNotFound, gin.H{"error": "Record not found"})
|
||||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, mastoStatus)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue