a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[frontend/core] Annotate QueryString.Add with Pure to prevent accidentally discarding QueryString modifications (ISH-864)

+3
+3
Iceshrimp.Frontend/Core/Miscellaneous/QueryString.cs
··· 1 1 using System.Diagnostics; 2 2 using System.Diagnostics.CodeAnalysis; 3 + using System.Diagnostics.Contracts; 3 4 using System.Text; 4 5 using System.Text.Encodings.Web; 5 6 using Microsoft.Extensions.Primitives; ··· 174 175 /// </summary> 175 176 /// <param name="other">The <see cref="QueryString" /> to concatenate.</param> 176 177 /// <returns>The concatenated <see cref="QueryString" />.</returns> 178 + [Pure] 177 179 public QueryString Add(QueryString other) 178 180 { 179 181 if (!HasValue || Value.Equals("?", StringComparison.Ordinal)) ··· 197 199 /// <param name="name">The name of the query string to concatenate.</param> 198 200 /// <param name="value">The value of the query string to concatenate.</param> 199 201 /// <returns>The concatenated <see cref="QueryString" />.</returns> 202 + [Pure] 200 203 public QueryString Add(string name, string value) 201 204 { 202 205 ArgumentNullException.ThrowIfNull(name);