aboutsummaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-10-19 10:01:59 +0000
committerr <r@freesoftwareextremist.com>2020-10-19 10:02:20 +0000
commit8fd03224390dcf9d7889d8ccd5c5a815c978164b (patch)
tree398e7f479eea64022b636629e495d6e56a5d66ac /service
parentfdd9b8fd2bf1688187dda2cb801232c744fe26e0 (diff)
downloadbloat-8fd03224390dcf9d7889d8ccd5c5a815c978164b.tar.gz
bloat-8fd03224390dcf9d7889d8ccd5c5a815c978164b.zip
Fix retweeted by id on user page
Diffstat (limited to 'service')
-rw-r--r--service/service.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/service/service.go b/service/service.go
index 23685c4..b418921 100644
--- a/service/service.go
+++ b/service/service.go
@@ -560,6 +560,12 @@ func (svc *service) ServeUserPage(c *model.Client, id string, pageType string,
return errInvalidArgument
}
+ for i := range statuses {
+ if statuses[i].Reblog != nil {
+ statuses[i].Reblog.RetweetedByID = statuses[i].ID
+ }
+ }
+
commonData := svc.getCommonData(c, user.DisplayName)
data := &renderer.UserData{
User: user,