Another's profile and posts can be reported from the client (/api/v1/reports): a category, words, and for a remote account a copy to its server, which PrivaPub sends from its own actor, never naming the persona. Who liked or boosted a post opens from its card's menu (favourited_by, reblogged_by). e2e: a report from a Mastodon account's profile reaches PrivaPub's moderators forwarded, and a post's likes and boosts list the persona who gave them; the admin helper the tests share moves to Support. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
19 lines
699 B
C#
19 lines
699 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
using decePubClient.Models.Types;
|
|
using decePubClient.Resources;
|
|
|
|
namespace decePubClient.Models;
|
|
|
|
/// <summary>A report of an account, and of the post it was made from, as the report dialog edits it.</summary>
|
|
public class ReportForm
|
|
{
|
|
public const int CommentLength = 1000;
|
|
|
|
public ReportCategory Category { get; set; } = ReportCategory.Other;
|
|
[StringLength(CommentLength, ErrorMessageResourceName = ValidationNames.MaxLength, ErrorMessageResourceType = typeof(ErrorMessages))]
|
|
public string Comment { get; set; }
|
|
/// <summary>A copy to a remote account's own server, from PrivaPub's actor.</summary>
|
|
public bool Forward { get; set; } = true;
|
|
}
|