Featured tags per persona (/api/v1/featured_tags, suggestions, tags/:name/feature, accounts' featured tags, max 10),
listed at /tattoos as Hashtags and sent as Add/Remove{Hashtag} to followers on the featured collection, as Mastodon
sends them; remote accounts' tags received and read from featuredTags. Endorsements (pin/endorse) and private notes
(PersonaNote) kept per persona and never federated; the relationship's notifying, languages, endorsed and note, with
follow's notify (status notifications) and languages (home filter). Reading preferences set on /clientapi. Suggestions
v1/v2 with dismissals and staff picks, never the persona or a sibling. conversation events on the direct stream.
translate, annual reports and the admin API answer. New collections backed up and removed with their persona.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WpVCoDeM1qUTRp4fXQdfof
30 lines
1.3 KiB
C#
30 lines
1.3 KiB
C#
using PrivaPub.ClientModels.Resources;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace PrivaPub.ClientModels.User.Avatar
|
|
{
|
|
// How a persona's clients show what others post (R8): Mastodon's reading:expand:media ("default" hides media marked
|
|
// sensitive, "show_all", "hide_all") and reading:expand:spoilers, which GET /api/v1/preferences answers. Mastodon's API
|
|
// sets neither, so they are set here: GET and POST /clientapi/avatar/private/preferences, for the login's own persona.
|
|
public class ViewPersonaPreferences
|
|
{
|
|
public string AvatarId { get; set; }
|
|
public string ExpandMedia { get; set; }
|
|
public bool ExpandSpoilers { get; set; } = false;
|
|
}
|
|
|
|
public class PersonaPreferencesForm
|
|
{
|
|
[Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorsResource)),
|
|
Display(Name = nameof(AvatarId), ResourceType = typeof(FieldsNameResource))]
|
|
public string AvatarId { get; set; }
|
|
|
|
[Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorsResource)),
|
|
StringLength(16, ErrorMessageResourceName = "StringLength", ErrorMessageResourceType = typeof(ErrorsResource))]
|
|
public string ExpandMedia { get; set; }//"default", "show_all" or "hide_all"
|
|
|
|
public bool ExpandSpoilers { get; set; } = false;
|
|
}
|
|
}
|