mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 01:52:26 -05:00
[chore] No sigs for retrieving instance actor
As a possible path towards resolving #1186, this removes the signature check on the instance actor. Also adds a test to check authentication for a user other than the instance actor to ensure we don't poke a big hole into that check.
This commit is contained in:
parent
be6d80c020
commit
e65bda768c
6 changed files with 120 additions and 4 deletions
|
|
@ -72,3 +72,12 @@ func mapGet(m map[string]any, keys ...string) (any, bool) {
|
|||
}
|
||||
return nil, false
|
||||
}
|
||||
|
||||
func InstanceActor() string {
|
||||
a := GetHost()
|
||||
if a == "" {
|
||||
a = GetAccountDomain()
|
||||
}
|
||||
|
||||
return a
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue