mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02: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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user