mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 02:22:26 -05:00
[feature] Update attachment format, receive + send focalPoint prop + use it on the frontend (#4052)
* [feature] Update attachment format, receive + send `focalPoint` prop + use it on the frontend * whoops * boop * restore function signature of ExtractAttachments
This commit is contained in:
parent
6a6a499333
commit
f7323c065a
18 changed files with 617 additions and 72 deletions
|
|
@ -142,7 +142,14 @@ func (f *Filter) StatusableOK(
|
|||
}
|
||||
|
||||
// HEURISTIC 6: Are there any media attachments?
|
||||
attachments, _ := ap.ExtractAttachments(statusable)
|
||||
attachments, err := ap.ExtractAttachments(statusable)
|
||||
if err != nil {
|
||||
log.Warnf(ctx,
|
||||
"error(s) extracting attachments for %s: %v",
|
||||
ap.GetJSONLDId(statusable), err,
|
||||
)
|
||||
}
|
||||
|
||||
hasAttachments := len(attachments) != 0
|
||||
if hasAttachments {
|
||||
err := errors.New("status has attachment(s)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue