mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2024-11-10 06:54:16 +00:00
[bugfix] Fix pending approval check (#3316)
This commit is contained in:
parent
95614fb298
commit
e337aa83b8
1 changed files with 4 additions and 2 deletions
|
@ -311,7 +311,8 @@ func (f *federatingDB) acceptStatusIRI(
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if util.PtrOrValue(status.PendingApproval, false) {
|
pendingApproval := util.PtrOrValue(status.PendingApproval, false)
|
||||||
|
if !pendingApproval {
|
||||||
// Status doesn't need approval or it's
|
// Status doesn't need approval or it's
|
||||||
// already been approved by an Accept.
|
// already been approved by an Accept.
|
||||||
// Just return.
|
// Just return.
|
||||||
|
@ -402,7 +403,8 @@ func (f *federatingDB) acceptLikeIRI(
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if !util.PtrOrValue(fave.PendingApproval, false) {
|
pendingApproval := util.PtrOrValue(fave.PendingApproval, false)
|
||||||
|
if !pendingApproval {
|
||||||
// Like doesn't need approval or it's
|
// Like doesn't need approval or it's
|
||||||
// already been approved by an Accept.
|
// already been approved by an Accept.
|
||||||
// Just return.
|
// Just return.
|
||||||
|
|
Loading…
Reference in a new issue