mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-12 14:07:28 -06:00
some lil fixes for kibou compatibility
This commit is contained in:
parent
6994859d03
commit
d9d9a7a626
12 changed files with 102 additions and 36 deletions
|
|
@ -117,10 +117,14 @@ func (c *converter) ASRepresentationToAccount(accountable Accountable, update bo
|
|||
|
||||
// url property
|
||||
url, err := extractURL(accountable)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not extract url for person with id %s: %s", uri.String(), err)
|
||||
if err == nil {
|
||||
// take the URL if we can find it
|
||||
acct.URL = url.String()
|
||||
} else {
|
||||
// otherwise just take the account URI as the URL
|
||||
acct.URL = uri.String()
|
||||
}
|
||||
acct.URL = url.String()
|
||||
|
||||
|
||||
// InboxURI
|
||||
if accountable.GetActivityStreamsInbox() != nil && accountable.GetActivityStreamsInbox().GetIRI() != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue