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

This commit is contained in:
funkyhippo
2022-04-23 13:19:17 -07:00
committed by GitHub
parent c0aea77fe4
commit a500a5f975
3 changed files with 5 additions and 0 deletions
+1
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 {