Add terminations to error repsonses in API. (#1872)

This commit is contained in:
funkyhippo
2022-04-23 15:19:17 -05:00
committed by GitHub
parent c0aea77fe4
commit a500a5f975
3 changed files with 5 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ func SendFederatedMessage(w http.ResponseWriter, r *http.Request) {
message, ok := configValue.Value.(string)
if !ok {
controllers.WriteSimpleResponse(w, false, "unable to send message")
return
}
if err := activitypub.SendPublicFederatedMessage(message); err != nil {