Fix retweeted by id on user page
authorr <r@freesoftwareextremist.com>
Mon, 19 Oct 2020 10:01:59 +0000 (10:01 +0000)
committerr <r@freesoftwareextremist.com>
Mon, 19 Oct 2020 10:02:20 +0000 (10:02 +0000)
service/service.go

index 23685c49897cf8c487bbfbe156db17980091f46f..b418921b5f61dbdb31ba74b9333ced94314badca 100644 (file)
@@ -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,