mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-18 10:37:29 -06:00
[chore] add some more slice related utility functions + remove duplicated functions (#3149)
This commit is contained in:
parent
a237e2b295
commit
47c26818d6
7 changed files with 216 additions and 43 deletions
|
|
@ -62,7 +62,7 @@ type Conversation struct {
|
|||
|
||||
// ConversationOtherAccountsKey creates an OtherAccountsKey from a list of OtherAccountIDs.
|
||||
func ConversationOtherAccountsKey(otherAccountIDs []string) string {
|
||||
otherAccountIDs = util.UniqueStrings(otherAccountIDs)
|
||||
otherAccountIDs = util.Deduplicate(otherAccountIDs)
|
||||
slices.Sort(otherAccountIDs)
|
||||
return strings.Join(otherAccountIDs, ",")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue