A Follow was resent only when the persona followed again. Lemmy 1.0 sends nothing it queued for a server before it started sending there, so the Accept of a community follow made on first contact was lost for good: the village's persona stayed "requested" a day while Lemmy listed her as a follower, and every post the community announced was refused as not followed. A request still unanswered is now sent again, the same activity, after 15 minutes, an hour, 6 hours, a day, two and four days (FollowResender, every 15 minutes); a server that holds the follow answers the copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
26 lines
797 B
C#
26 lines
797 B
C#
using MongoDB.Entities;
|
|
|
|
namespace PrivaPub.Models.Social
|
|
{
|
|
public class Following : Entity
|
|
{
|
|
public string AvatarId { get; set; }//the local follower
|
|
public string TargetActorURI { get; set; }
|
|
public string TargetAccountId { get; set; }//Avatar.ID, Group.ID or ForeignAvatar.ID
|
|
public bool TargetIsLocal { get; set; }
|
|
public string TargetInboxURL { get; set; }
|
|
public FollowState State { get; set; }
|
|
public string FollowActivityURI { get; set; }
|
|
public bool ShowReblogs { get; set; } = true;
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public int Resent { get; set; }//how many times a request still unanswered was sent again (FollowService.ResendPending)
|
|
public DateTime? ResentAt { get; set; }
|
|
}
|
|
|
|
public enum FollowState
|
|
{
|
|
Requested,
|
|
Accepted
|
|
}
|
|
}
|