15 lines
607 B
C#
15 lines
607 B
C#
using MongoDB.Entities;
|
|||
|
|
|
||
|
|
namespace PrivaPub.Models.Federation
|
||
|
|
{
|
||
|
|
// An Announce a community sent (GroupDistributor), kept so its id resolves as both docs promise: announces are public,
|
||
|
|
// unlike follows, likes and blocks. Served only while the post it is about is still shown.
|
||
|
|
public class GroupAnnouncement : Entity
|
||
|
|
{
|
||
|
|
public string GroupId { get; set; }
|
||
|
|
public string ActivityURI { get; set; }
|
||
|
|
public string ObjectURI { get; set; }//the post it is about
|
||
|
|
public string Body { get; set; }//the Announce as sent, without @context
|
||
|
|
public DateTime PublishedAt { get; set; } = DateTime.UtcNow;
|
||
|
|
}
|
||
|
|
}
|