LocalEmoji, a new collection (unique shortcode whatever its case, never renamed: the shortcode is its id elsewhere),
managed on /clientapi/admin/emoji/list|insert|update|delete and kept in the staff's log (emoji.insert, .update,
.delete). Its picture goes through IMediaService.EmojiImage: PNG, GIF, WebP or JPEG up to 256 KB, a PNG within 256 px
with alpha kept (an animated GIF or WebP stays an animated GIF, with a still PNG), keep=none, shrunk until it fits
GoToSocial's 100 KiB, held by ServerUse "emoji:<shortcode>" so the janitor and the audit leave it. LocalEmojis keeps the
offered ones in memory, reloaded on every change: GET /api/v1/custom_emojis is real; local posts (words, title, warning,
poll options, each revision) and profiles keep the emoji they name; Notes, Questions, actors and EmojiReacts carry
Mastodon's Emoji tag with its id, served as an Emoji at /emojis/{shortcode} (410 once deleted; the path awaits the
owner's confirmation); a persona reacts with one (Pleroma's reactions, announcements). A restore keeps the live emoji
as it keeps the settings, and trashes server pictures nothing holds. tools/pasture/scenarios/emoji.sh joins batch A.
Verified: built, and run locally against a scratch database (uploads of every type, animation kept, metadata gone,
refusals, rendering, reactions, history, announcements, delete and revive, backup and restore, media audit). The
pasture scenario and the sweep were not run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WpVCoDeM1qUTRp4fXQdfof
217 lines
8.1 KiB
C#
217 lines
8.1 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.42000
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace PrivaPub.ClientModels.Resources {
|
|
using System;
|
|
|
|
|
|
/// <summary>
|
|
/// A strongly-typed resource class, for looking up localized strings, etc.
|
|
/// </summary>
|
|
// This class was auto-generated by the StronglyTypedResourceBuilder
|
|
// class via a tool like ResGen or Visual Studio.
|
|
// To add or remove a member, edit your .ResX file then rerun ResGen
|
|
// with the /str option, or rebuild your VS project.
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
public class ErrorsResource {
|
|
|
|
private static global::System.Resources.ResourceManager resourceMan;
|
|
|
|
private static global::System.Globalization.CultureInfo resourceCulture;
|
|
|
|
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
|
internal ErrorsResource() {
|
|
}
|
|
|
|
/// <summary>
|
|
/// Returns the cached ResourceManager instance used by this class.
|
|
/// </summary>
|
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
public static global::System.Resources.ResourceManager ResourceManager {
|
|
get {
|
|
if (object.ReferenceEquals(resourceMan, null)) {
|
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PrivaPub.ClientModels.Resources.ErrorsResource", typeof(ErrorsResource).Assembly);
|
|
resourceMan = temp;
|
|
}
|
|
return resourceMan;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Overrides the current thread's CurrentUICulture property for all
|
|
/// resource lookups using this strongly typed resource class.
|
|
/// </summary>
|
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
public static global::System.Globalization.CultureInfo Culture {
|
|
get {
|
|
return resourceCulture;
|
|
}
|
|
set {
|
|
resourceCulture = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to At least one field should be filled..
|
|
/// </summary>
|
|
public static string AtLeastOneProperty {
|
|
get {
|
|
return ResourceManager.GetString("AtLeastOneProperty", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to {0} doesn't match the new password..
|
|
/// </summary>
|
|
public static string ComparePasswords {
|
|
get {
|
|
return ResourceManager.GetString("ComparePasswords", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Invalid format..
|
|
/// </summary>
|
|
public static string DataType {
|
|
get {
|
|
return ResourceManager.GetString("DataType", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Empty spaces are not allowed..
|
|
/// </summary>
|
|
public static string EmptySpacesNotAllowed {
|
|
get {
|
|
return ResourceManager.GetString("EmptySpacesNotAllowed", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to {0} is invalid..
|
|
/// </summary>
|
|
public static string InvalidEmail {
|
|
get {
|
|
return ResourceManager.GetString("InvalidEmail", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Use only lower-case letters, digits and underscores..
|
|
/// </summary>
|
|
public static string InvalidUserName {
|
|
get {
|
|
return ResourceManager.GetString("InvalidUserName", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Use only letters, digits and underscores, from 2 to 64 of them..
|
|
/// </summary>
|
|
public static string InvalidShortcode {
|
|
get {
|
|
return ResourceManager.GetString("InvalidShortcode", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Invalid password, upper-case, lower-case and number characters required..
|
|
/// </summary>
|
|
public static string InvalidPassword {
|
|
get {
|
|
return ResourceManager.GetString("InvalidPassword", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Max amount of {0} items reached..
|
|
/// </summary>
|
|
public static string MaxLengthArray {
|
|
get {
|
|
return ResourceManager.GetString("MaxLengthArray", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Max file size is 1MB..
|
|
/// </summary>
|
|
public static string MaxLengthFileConfrontation {
|
|
get {
|
|
return ResourceManager.GetString("MaxLengthFileConfrontation", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Max length of {0} characters reached..
|
|
/// </summary>
|
|
public static string MaxLengthString {
|
|
get {
|
|
return ResourceManager.GetString("MaxLengthString", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to {0} should be {1} characters long.
|
|
/// </summary>
|
|
public static string MinLength {
|
|
get {
|
|
return ResourceManager.GetString("MinLength", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to The accepted value must be between {1} and {2}.
|
|
/// </summary>
|
|
public static string Range {
|
|
get {
|
|
return ResourceManager.GetString("Range", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to {0} is required..
|
|
/// </summary>
|
|
public static string Required {
|
|
get {
|
|
return ResourceManager.GetString("Required", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to Only one character is allowed..
|
|
/// </summary>
|
|
public static string SingleCharacterValidator {
|
|
get {
|
|
return ResourceManager.GetString("SingleCharacterValidator", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to {0} is exceeding the length of {1} characters..
|
|
/// </summary>
|
|
public static string StringLength {
|
|
get {
|
|
return ResourceManager.GetString("StringLength", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to {0} is exceeding the length between {2} and {1} characters..
|
|
/// </summary>
|
|
public static string StringLengthMinMax {
|
|
get {
|
|
return ResourceManager.GetString("StringLengthMinMax", resourceCulture);
|
|
}
|
|
}
|
|
}
|
|
}
|