mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-01-10 16:28:13 +01:00
move obfuscate parse nearer to where err is checked
This commit is contained in:
parent
203d2b79a3
commit
7233c4d768
@ -584,7 +584,7 @@ func (s *Subscriptions) permsFromCSV(
|
|||||||
domainRaw = record[0]
|
domainRaw = record[0]
|
||||||
severity = record[1]
|
severity = record[1]
|
||||||
publicComment = record[4]
|
publicComment = record[4]
|
||||||
obfuscate, err = strconv.ParseBool(record[5])
|
obfuscateStr = record[5]
|
||||||
)
|
)
|
||||||
|
|
||||||
if severity != "suspend" {
|
if severity != "suspend" {
|
||||||
@ -592,6 +592,7 @@ func (s *Subscriptions) permsFromCSV(
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
obfuscate, err := strconv.ParseBool(obfuscateStr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
l.Warnf("couldn't parse obfuscate field of record: %+v", record)
|
l.Warnf("couldn't parse obfuscate field of record: %+v", record)
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user