mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-15 09:33:00 -06:00
[bugfix] Normalize status content (don't parse status content as IRI) (#1665)
* start fannying about * finish up Normalize * tidy up * pin to tag * move errors about just a little bit
This commit is contained in:
parent
4f322f527f
commit
c54510bc74
16 changed files with 665 additions and 293 deletions
|
|
@ -60,6 +60,7 @@ type Statusable interface {
|
|||
WithSensitive
|
||||
WithConversation
|
||||
WithContent
|
||||
WithSetContent
|
||||
WithAttachment
|
||||
WithTag
|
||||
WithReplies
|
||||
|
|
@ -281,6 +282,11 @@ type WithContent interface {
|
|||
GetActivityStreamsContent() vocab.ActivityStreamsContentProperty
|
||||
}
|
||||
|
||||
// WithSetContent represents an activity that can have content set on it.
|
||||
type WithSetContent interface {
|
||||
SetActivityStreamsContent(vocab.ActivityStreamsContentProperty)
|
||||
}
|
||||
|
||||
// WithPublished represents an activity with ActivityStreamsPublishedProperty
|
||||
type WithPublished interface {
|
||||
GetActivityStreamsPublished() vocab.ActivityStreamsPublishedProperty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue