🐛 Not supposed to appear to status at the same time
This commit is contained in:
parent
0bce0d45c8
commit
3f0d3fc69e
6
.idea/workspace.xml
generated
6
.idea/workspace.xml
generated
@ -4,7 +4,7 @@
|
|||||||
<option name="autoReloadType" value="ALL" />
|
<option name="autoReloadType" value="ALL" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":bug: Invisible status is visible to others">
|
<list default="true" id="3fefb2c4-b6f9-466b-a523-53352e8d6f95" name="更改" comment=":ambulance: Fix nil pointer panic">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/pkg/internal/server/api/statuses_api.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/server/api/statuses_api.go" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/pkg/internal/server/api/statuses_api.go" beforeDir="false" afterPath="$PROJECT_DIR$/pkg/internal/server/api/statuses_api.go" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
@ -152,7 +152,6 @@
|
|||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<MESSAGE value=":ambulance: Fix nil map panic" />
|
|
||||||
<MESSAGE value=":recycle: Update the sign in web page to the latest API" />
|
<MESSAGE value=":recycle: Update the sign in web page to the latest API" />
|
||||||
<MESSAGE value=":wastebasket: Remove the personal page" />
|
<MESSAGE value=":wastebasket: Remove the personal page" />
|
||||||
<MESSAGE value=":recycle: OAuth authenticate" />
|
<MESSAGE value=":recycle: OAuth authenticate" />
|
||||||
@ -177,7 +176,8 @@
|
|||||||
<MESSAGE value=":bug: Fix miscall function" />
|
<MESSAGE value=":bug: Fix miscall function" />
|
||||||
<MESSAGE value=":bug: Fix ws security blocked" />
|
<MESSAGE value=":bug: Fix ws security blocked" />
|
||||||
<MESSAGE value=":bug: Invisible status is visible to others" />
|
<MESSAGE value=":bug: Invisible status is visible to others" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value=":bug: Invisible status is visible to others" />
|
<MESSAGE value=":ambulance: Fix nil pointer panic" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value=":ambulance: Fix nil pointer panic" />
|
||||||
</component>
|
</component>
|
||||||
<component name="VgoProject">
|
<component name="VgoProject">
|
||||||
<settings-migrated>true</settings-migrated>
|
<settings-migrated>true</settings-migrated>
|
||||||
|
@ -73,6 +73,12 @@ func setStatus(c *fiber.Ctx) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// End the status already exists
|
||||||
|
if status, err := services.GetStatus(user.ID); err == nil {
|
||||||
|
status.ClearAt = lo.ToPtr(time.Now())
|
||||||
|
database.C.Save(&status)
|
||||||
|
}
|
||||||
|
|
||||||
status := models.Status{
|
status := models.Status{
|
||||||
Type: req.Type,
|
Type: req.Type,
|
||||||
Label: req.Label,
|
Label: req.Label,
|
||||||
|
Loading…
Reference in New Issue
Block a user