🐛 Fix mastodon timeline identifier

This commit is contained in:
LittleSheep 2025-03-12 21:26:11 +08:00
parent 74de589513
commit 26dfd25763

View File

@ -42,7 +42,7 @@ func (v MastodonPost) ToFediversePost() models.FediversePost {
BaseModel: cruda.BaseModel{
CreatedAt: v.CreatedAt,
},
Identifier: v.ID,
Identifier: fmt.Sprintf("%s@%s", v.ID, v.Server),
Origin: v.Server,
Content: v.Content,
Language: v.Language,