mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 02:12:26 -06:00
add repeat boost filtering logic, update go-structr, general improvements
This commit is contained in:
parent
cf405352e6
commit
50805fac53
10 changed files with 153 additions and 114 deletions
5
vendor/codeberg.org/gruf/go-structr/index.go
generated
vendored
5
vendor/codeberg.org/gruf/go-structr/index.go
generated
vendored
|
|
@ -1,6 +1,7 @@
|
|||
package structr
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"reflect"
|
||||
"strings"
|
||||
|
|
@ -222,10 +223,10 @@ func (i *Index) get(key string, hook func(*indexed_item)) {
|
|||
func (i *Index) key(buf *byteutil.Buffer, parts []unsafe.Pointer) string {
|
||||
buf.B = buf.B[:0]
|
||||
if len(parts) != len(i.fields) {
|
||||
panicf("incorrect number key parts: want=%d received=%d",
|
||||
panic(fmt.Sprintf("incorrect number key parts: want=%d received=%d",
|
||||
len(i.fields),
|
||||
len(parts),
|
||||
)
|
||||
))
|
||||
}
|
||||
if !allow_zero(i.flags) {
|
||||
for x, field := range i.fields {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue