mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-24 00:03:31 -06:00
[bugfix] Ensure pending_approval set on statuses + status faves (#3415)
* [bugfix] Ensure pending_approval set on statuses + status faves * set PendingApproval on boosts * assume not pending approval
This commit is contained in:
parent
a504d8a105
commit
cb9008fb41
4 changed files with 109 additions and 13 deletions
|
|
@ -432,6 +432,10 @@ func (c *Converter) ASStatusToStatus(ctx context.Context, statusable ap.Statusab
|
|||
status.ApprovedByURI = approvedByURI.String()
|
||||
}
|
||||
|
||||
// Assume not pending approval; this may
|
||||
// change when permissivity is checked.
|
||||
status.PendingApproval = util.Ptr(false)
|
||||
|
||||
// status.Sensitive
|
||||
sensitive := ap.ExtractSensitive(statusable)
|
||||
status.Sensitive = &sensitive
|
||||
|
|
@ -531,6 +535,10 @@ func (c *Converter) ASLikeToFave(ctx context.Context, likeable ap.Likeable) (*gt
|
|||
StatusID: target.ID,
|
||||
Status: target,
|
||||
URI: uri,
|
||||
|
||||
// Assume not pending approval; this may
|
||||
// change when permissivity is checked.
|
||||
PendingApproval: util.Ptr(false),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
@ -656,6 +664,10 @@ func (c *Converter) ASAnnounceToStatus(
|
|||
boost.MentionIDs = make([]string, 0)
|
||||
boost.EmojiIDs = make([]string, 0)
|
||||
|
||||
// Assume not pending approval; this may
|
||||
// change when permissivity is checked.
|
||||
boost.PendingApproval = util.Ptr(false)
|
||||
|
||||
// Remaining fields on the boost will be
|
||||
// taken from the target status; it's not
|
||||
// our job to do all that dereferencing here.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue