mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 22:26:15 -06:00
[feature] Create/update/remove domain permission subscriptions
This commit is contained in:
parent
8504043024
commit
a3743f8234
44 changed files with 4389 additions and 171 deletions
|
|
@ -83,3 +83,12 @@ func NewRandomULID() (string, error) {
|
|||
}
|
||||
return newUlid.String(), nil
|
||||
}
|
||||
|
||||
func TimeFromULID(id string) (time.Time, error) {
|
||||
parsed, err := ulid.ParseStrict(id)
|
||||
if err != nil {
|
||||
return time.Time{}, err
|
||||
}
|
||||
|
||||
return ulid.Time(parsed.Time()), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue