mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
feat: Allow server admins to do timestamp massaging too
This commit is contained in:
1 parent
63578eba8c
commit
c1e4f926c8
1 file changed
+3
-1
@@ -102,7 +102,9 @@ pub(crate) async fn send_message_event_route(
|
||||
.flatten()
|
||||
.map(sticky::object),
|
||||
unsigned: Some(unsigned),
|
||||
timestamp: if body.identity.is_appservice() {
|
||||
timestamp: if body.identity.is_appservice()
|
||||
|| services.admin.user_is_admin(sender_user).await
|
||||
{
|
||||
body.timestamp
|
||||
} else {
|
||||
None
|
||||
|
||||
Reference in new issue
Block a user