mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53:09 -06:00
Build errors resolved
This commit is contained in:
parent
85edb4033d
commit
0b8f040d16
|
|
@ -41,7 +41,7 @@ func GetTag(req *http.Request, accountDB *accounts.Database, userID string, room
|
||||||
JSON: jsonerror.NotFound("Bad method"),
|
JSON: jsonerror.NotFound("Bad method"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mtag := NewMTag()
|
mtag := newMTag()
|
||||||
|
|
||||||
localpart, _, err := gomatrixserverlib.SplitID('@', userID)
|
localpart, _, err := gomatrixserverlib.SplitID('@', userID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
@ -91,7 +91,7 @@ func PutTag(req *http.Request, accountDB *accounts.Database, userID string, room
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return httputil.LogThenError(req, err)
|
return httputil.LogThenError(req, err)
|
||||||
}
|
}
|
||||||
mtag := NewMTag()
|
mtag := newMTag()
|
||||||
var properties common.TagProperties
|
var properties common.TagProperties
|
||||||
|
|
||||||
if reqErr := httputil.UnmarshalJSONRequest(req, &properties); reqErr != nil {
|
if reqErr := httputil.UnmarshalJSONRequest(req, &properties); reqErr != nil {
|
||||||
|
|
@ -143,7 +143,7 @@ func DeleteTag(req *http.Request, accountDB *accounts.Database, userID string, r
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return httputil.LogThenError(req, err)
|
return httputil.LogThenError(req, err)
|
||||||
}
|
}
|
||||||
mtag := NewMTag()
|
mtag := newMTag()
|
||||||
|
|
||||||
if len(data) > 0 {
|
if len(data) > 0 {
|
||||||
dataByte, _ := json.Marshal(data)
|
dataByte, _ := json.Marshal(data)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue