mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-10 13:58:46 +00:00
add friendica true remote timeline fix
This commit is contained in:
parent
0f33427d5b
commit
fc43de6012
2 changed files with 9 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue