feat(ap): @mention notification from inbound remote Notes

This commit is contained in:
2026-05-15 05:44:10 +02:00
parent ca1ebc4b68
commit 6c83c193ed
6 changed files with 138 additions and 1 deletions

View File

@@ -55,6 +55,14 @@ pub trait ApObjectHandler: Send + Sync {
/// Called when a remote actor removes a Like from a local thought.
async fn on_unlike(&self, object_url: &Url, actor_url: &Url) -> anyhow::Result<()>;
/// Called when an inbound Note tags a local user with a Mention.
async fn on_mention(
&self,
thought_ap_id: &Url,
mentioned_user_uuid: uuid::Uuid,
actor_url: &Url,
) -> anyhow::Result<()>;
/// Total number of locally-authored posts across all users.
async fn count_local_posts(&self) -> anyhow::Result<u64>;
}