♻️ Update handling logic of activitypub
This commit is contained in:
@@ -107,7 +107,6 @@ public class SnPost : ModelBase, IIdentifiedResource, ITimelineEvent
|
||||
public List<ContentMention>? Mentions { get; set; }
|
||||
|
||||
public int BoostCount { get; set; }
|
||||
public int LikeCount { get; set; }
|
||||
|
||||
public Guid? ActorId { get; set; }
|
||||
public SnFediverseActor? Actor { get; set; }
|
||||
@@ -232,7 +231,6 @@ public class SnPost : ModelBase, IIdentifiedResource, ITimelineEvent
|
||||
|
||||
proto.RepliesCount = RepliesCount;
|
||||
proto.BoostCount = BoostCount;
|
||||
proto.LikeCount = LikeCount;
|
||||
|
||||
if (ActorId.HasValue)
|
||||
proto.ActorId = ActorId.Value.ToString();
|
||||
@@ -349,7 +347,6 @@ public class SnPost : ModelBase, IIdentifiedResource, ITimelineEvent
|
||||
|
||||
post.RepliesCount = proto.RepliesCount;
|
||||
post.BoostCount = proto.BoostCount;
|
||||
post.LikeCount = proto.LikeCount;
|
||||
|
||||
if (!string.IsNullOrEmpty(proto.ActorId))
|
||||
post.ActorId = Guid.Parse(proto.ActorId);
|
||||
|
||||
@@ -143,7 +143,6 @@ message Post {
|
||||
optional PostContentType content_type = 44;
|
||||
repeated ContentMention mentions = 48;
|
||||
int32 boost_count = 50;
|
||||
int32 like_count = 51;
|
||||
optional string actor_id = 53;
|
||||
|
||||
repeated PostAward awards = 33;
|
||||
|
||||
Reference in New Issue
Block a user