add friendica true remote timeline fix

This commit is contained in:
localhost_frssoft 2023-11-13 11:04:16 +03:00
parent 0f33427d5b
commit fc43de6012
2 changed files with 9 additions and 0 deletions

View file

@ -371,6 +371,14 @@ func (c *Client) TrueRemoteTimeline(ctx context.Context, instance string, instan
status.URL = "https://" + instance + "/notes/" + statusMisskey.ID
publicstatuses = append(publicstatuses, &status)
}
case "friendica":
err = json.NewDecoder(resp.Body).Decode(&publicstatuses)
if err != nil {
return nil, err
}
for _, status := range publicstatuses {
status.URL = status.URI // Fix federate URL
}
default:
err = json.NewDecoder(resp.Body).Decode(&publicstatuses)
if err != nil {