mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 19:16:16 -06:00
fix status source test
This commit is contained in:
parent
44b779d8af
commit
f0f3bc52dc
3 changed files with 7 additions and 2 deletions
|
|
@ -198,6 +198,11 @@ func (p *Processor) processContent(
|
|||
poll.Options = status.PollOptions
|
||||
}
|
||||
|
||||
// We may have received multiple copies of the same emoji, deduplicate these first.
|
||||
status.Emojis = xslices.DeduplicateFunc(status.Emojis, func(e *gtsmodel.Emoji) string {
|
||||
return e.ID
|
||||
})
|
||||
|
||||
// Gather up the IDs of mentions from parsed content.
|
||||
status.MentionIDs = xslices.Gather(nil, status.Mentions,
|
||||
func(m *gtsmodel.Mention) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue