summaryrefslogtreecommitdiff
path: root/internal/processing/status/create.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/status/create.go')
-rw-r--r--internal/processing/status/create.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/processing/status/create.go b/internal/processing/status/create.go
index 1e93af162..add8a5bc6 100644
--- a/internal/processing/status/create.go
+++ b/internal/processing/status/create.go
@@ -39,13 +39,11 @@ func (p *processor) Create(ctx context.Context, account *gtsmodel.Account, appli
if err != nil {
return nil, gtserror.NewErrorInternalError(err)
}
- thisStatusURI := fmt.Sprintf("%s/%s", accountURIs.StatusesURI, thisStatusID)
- thisStatusURL := fmt.Sprintf("%s/%s", accountURIs.StatusesURL, thisStatusID)
newStatus := &gtsmodel.Status{
ID: thisStatusID,
- URI: thisStatusURI,
- URL: thisStatusURL,
+ URI: accountURIs.StatusesURI + "/" + thisStatusID,
+ URL: accountURIs.StatusesURL + "/" + thisStatusID,
CreatedAt: time.Now(),
UpdatedAt: time.Now(),
Local: true,