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 {

View File

@ -26,6 +26,7 @@
<select id="instance_type" name="instance_type" title="Select instance type">
<option value="mastodon-compatible" default>Mastodon compatible</option>
<option value="misskey"{{if eq .InstanceType "misskey"}}selected{{end}}>Misskey</option>
<option value="friendica"{{if eq .InstanceType "friendica"}}selected{{end}}>Friendica</option>
</select>
</span>
<button type="submit"> Submit </button>