Fix invalid field name
This commit is contained in:
parent
e96f36d313
commit
21b82ebb2c
@ -309,7 +309,7 @@ func SetMessageVisibilityForUserID(userID string, visible bool) error {
|
|||||||
|
|
||||||
// Get a list of IDs to send to the connected clients to hide
|
// Get a list of IDs to send to the connected clients to hide
|
||||||
ids := make([]string, 0)
|
ids := make([]string, 0)
|
||||||
query := fmt.Sprintf("SELECT messages.id, user_id, body, title, subtitle, image, link, eventType, hidden_at, timestamp, display_name, display_color, created_at, disabled_at, previous_names, namechanged_at, authenticated, scopes, type FROM messages INNER JOIN users ON messages.user_id = users.id WHERE user_id IS '%s'", userID)
|
query := fmt.Sprintf("SELECT messages.id, user_id, body, title, subtitle, image, link, eventType, hidden_at, timestamp, display_name, display_color, created_at, disabled_at, previous_names, namechanged_at, authenticated_at, scopes, type FROM messages INNER JOIN users ON messages.user_id = users.id WHERE user_id IS '%s'", userID)
|
||||||
messages := getChat(query)
|
messages := getChat(query)
|
||||||
|
|
||||||
if len(messages) == 0 {
|
if len(messages) == 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user