mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-22 23:13:00 +00:00
add friendica true remote timeline fix
This commit is contained in:
parent
0f33427d5b
commit
fc43de6012
@ -371,6 +371,14 @@ func (c *Client) TrueRemoteTimeline(ctx context.Context, instance string, instan
|
|||||||
status.URL = "https://" + instance + "/notes/" + statusMisskey.ID
|
status.URL = "https://" + instance + "/notes/" + statusMisskey.ID
|
||||||
publicstatuses = append(publicstatuses, &status)
|
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:
|
default:
|
||||||
err = json.NewDecoder(resp.Body).Decode(&publicstatuses)
|
err = json.NewDecoder(resp.Body).Decode(&publicstatuses)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
<select id="instance_type" name="instance_type" title="Select instance type">
|
<select id="instance_type" name="instance_type" title="Select instance type">
|
||||||
<option value="mastodon-compatible" default>Mastodon compatible</option>
|
<option value="mastodon-compatible" default>Mastodon compatible</option>
|
||||||
<option value="misskey"{{if eq .InstanceType "misskey"}}selected{{end}}>Misskey</option>
|
<option value="misskey"{{if eq .InstanceType "misskey"}}selected{{end}}>Misskey</option>
|
||||||
|
<option value="friendica"{{if eq .InstanceType "friendica"}}selected{{end}}>Friendica</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
<button type="submit"> Submit </button>
|
<button type="submit"> Submit </button>
|
||||||
|
Loading…
Reference in New Issue
Block a user