diff options
author | 2024-10-05 12:27:53 +0200 | |
---|---|---|
committer | 2024-10-05 12:27:53 +0200 | |
commit | c33b1e89c18944f8b5022f0c21d650683b92d717 (patch) | |
tree | be624658a0dc8f76502670466ace85ec7dce2ab7 /internal/db/bundb/interaction.go | |
parent | [docs] Make `protocol` config option really explicit (#3391) (diff) | |
download | gotosocial-c33b1e89c18944f8b5022f0c21d650683b92d717.tar.xz |
[bugfix] Update select of pending interaction requests to account for potential nil URI (#3392)
Diffstat (limited to 'internal/db/bundb/interaction.go')
-rw-r--r-- | internal/db/bundb/interaction.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/db/bundb/interaction.go b/internal/db/bundb/interaction.go index 88a044b6f..a04e97905 100644 --- a/internal/db/bundb/interaction.go +++ b/internal/db/bundb/interaction.go @@ -302,9 +302,9 @@ func (i *interactionDB) GetInteractionsRequestsForAcct( bun.Ident("interaction_request"), ). // Select only interaction requests that - // are neither accepted or rejected yet, - // ie., without an Accept or Reject URI. - Where("? IS NULL", bun.Ident("uri")) + // are neither accepted or rejected yet. + Where("? IS NULL", bun.Ident("accepted_at")). + Where("? IS NULL", bun.Ident("rejected_at")) // Select interactions targeting status. if statusID != "" { |