mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-15 04:27:30 -06:00
[bugfix] Update select of pending interaction requests to account for potential nil URI (#3392)
This commit is contained in:
parent
36abd568b1
commit
c33b1e89c1
2 changed files with 60 additions and 3 deletions
|
|
@ -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 != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue