mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-24 23:15:13 +00:00
parent
fa0814f939
commit
f47a564819
4 changed files with 13 additions and 3 deletions
|
@ -7,6 +7,13 @@
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
## 12.x.x (unreleased)
|
||||||
|
|
||||||
|
### Improvements
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
- リレー向けのActivityが一部実装で除外されてしまうことがあるのを修正
|
||||||
|
|
||||||
## 12.94.1 (2021/10/25)
|
## 12.94.1 (2021/10/25)
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
|
|
|
@ -4,5 +4,6 @@ import { User } from '@/models/entities/user';
|
||||||
export default (object: any, user: { id: User['id']; host: null }) => ({
|
export default (object: any, user: { id: User['id']; host: null }) => ({
|
||||||
type: 'Delete',
|
type: 'Delete',
|
||||||
actor: `${config.url}/users/${user.id}`,
|
actor: `${config.url}/users/${user.id}`,
|
||||||
object
|
object,
|
||||||
|
published: new Date().toISOString(),
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,6 +7,7 @@ export default (object: any, user: { id: User['id'] }) => {
|
||||||
return {
|
return {
|
||||||
type: 'Undo',
|
type: 'Undo',
|
||||||
actor: `${config.url}/users/${user.id}`,
|
actor: `${config.url}/users/${user.id}`,
|
||||||
object
|
object,
|
||||||
|
published: new Date().toISOString(),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,7 +7,8 @@ export default (object: any, user: { id: User['id'] }) => {
|
||||||
actor: `${config.url}/users/${user.id}`,
|
actor: `${config.url}/users/${user.id}`,
|
||||||
type: 'Update',
|
type: 'Update',
|
||||||
to: [ 'https://www.w3.org/ns/activitystreams#Public' ],
|
to: [ 'https://www.w3.org/ns/activitystreams#Public' ],
|
||||||
object
|
object,
|
||||||
|
published: new Date().toISOString(),
|
||||||
} as any;
|
} as any;
|
||||||
|
|
||||||
return activity;
|
return activity;
|
||||||
|
|
Loading…
Reference in a new issue