mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-02 12:08:08 -06:00
linting
This commit is contained in:
parent
72c91c92d0
commit
932702fbe1
5 changed files with 21 additions and 23 deletions
|
|
@ -361,15 +361,15 @@ func extractAttachment(i Attachmentable) (*gtsmodel.MediaAttachment, error) {
|
|||
return attachment, nil
|
||||
}
|
||||
|
||||
func extractBlurhash(i withBlurhash) (string, error) {
|
||||
if i.GetTootBlurhashProperty() == nil {
|
||||
return "", errors.New("blurhash property was nil")
|
||||
}
|
||||
if i.GetTootBlurhashProperty().Get() == "" {
|
||||
return "", errors.New("empty blurhash string")
|
||||
}
|
||||
return i.GetTootBlurhashProperty().Get(), nil
|
||||
}
|
||||
// func extractBlurhash(i withBlurhash) (string, error) {
|
||||
// if i.GetTootBlurhashProperty() == nil {
|
||||
// return "", errors.New("blurhash property was nil")
|
||||
// }
|
||||
// if i.GetTootBlurhashProperty().Get() == "" {
|
||||
// return "", errors.New("empty blurhash string")
|
||||
// }
|
||||
// return i.GetTootBlurhashProperty().Get(), nil
|
||||
// }
|
||||
|
||||
func extractHashtags(i withTag) ([]*gtsmodel.Tag, error) {
|
||||
tags := []*gtsmodel.Tag{}
|
||||
|
|
|
|||
|
|
@ -210,13 +210,13 @@ type withMediaType interface {
|
|||
GetActivityStreamsMediaType() vocab.ActivityStreamsMediaTypeProperty
|
||||
}
|
||||
|
||||
type withBlurhash interface {
|
||||
GetTootBlurhashProperty() vocab.TootBlurhashProperty
|
||||
}
|
||||
// type withBlurhash interface {
|
||||
// GetTootBlurhashProperty() vocab.TootBlurhashProperty
|
||||
// }
|
||||
|
||||
type withFocalPoint interface {
|
||||
// TODO
|
||||
}
|
||||
// type withFocalPoint interface {
|
||||
// // TODO
|
||||
// }
|
||||
|
||||
type withHref interface {
|
||||
GetActivityStreamsHref() vocab.ActivityStreamsHrefProperty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue