true remote timeline fixed

This commit is contained in:
localhost_frssoft 2023-11-11 21:39:00 +03:00
parent 34940a65df
commit eedd9d2c5c
5 changed files with 29 additions and 11 deletions

View file

@ -163,6 +163,10 @@ func (s *service) TimelinePage(c *client, tType, instance, listId, maxID,
if err != nil {
return err
}
v := make(url.Values)
v.Set("max_id", statuses[len(statuses)-1].ID)
v.Set("instance", instance)
nextLink = "/timeline/" + tType + "?" + v.Encode()
}
title = "True Remote Timeline"
case "twkn":
@ -207,6 +211,10 @@ func (s *service) TimelinePage(c *client, tType, instance, listId, maxID,
}
statuses[i].Pleroma.Reactions = reactions
}
if tType == "tremote" {
statuses[i].URL = fmt.Sprintf("/search?q=%s&type=statuses", statuses[i].URL)
}
}
if (len(maxID) > 0 || len(minID) > 0) && len(statuses) > 0 {