You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -96,14 +93,21 @@ public async Task<StoredFileInfo> GetAsync(string id)
96
93
{
97
94
try
98
95
{
96
+
// get client
99
97
BlobClientblob=this.GetAzureBlobClient(id);
98
+
99
+
// extend expiry
100
+
if(renew)
101
+
awaitblob.SetMetadataAsync(newDictionary<string,string>{["expiryRenewed"]=DateTime.UtcNow.ToString("O")});// change the blob's last-modified date (the specific property set doesn't matter)
Copy file name to clipboardExpand all lines: src/SMAPI.Web/Views/LogParser/Index.cshtml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ else if (Model.ParsedLog?.IsValid == true)
78
78
<div class="save-metadata" v-pre>
79
79
@if (Model.Expiry != null)
80
80
{
81
-
<text>This log will expire in @((DateTime.UtcNow - Model.Expiry.Value).Humanize()).</text>
81
+
<text>This log will expire in @((DateTime.UtcNow - Model.Expiry.Value).Humanize()) (<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%40%28this.Url.PlainAction%28"Index", "LogParser", new { id = this.Model.PasteID, renew = true }))">renew</a>).</text>
0 commit comments