Fix send_delete_activity
This commit is contained in:
parent
c801d072c8
commit
de74f1d70b
1 changed files with 2 additions and 2 deletions
|
@ -101,11 +101,11 @@ class Activity_Dispatcher {
|
||||||
/**
|
/**
|
||||||
* Send "delete" activities.
|
* Send "delete" activities.
|
||||||
*
|
*
|
||||||
* @param str $activitypub_url
|
* @param \Activitypub\Model\Post $activitypub_post
|
||||||
* @param int $user_id
|
|
||||||
*/
|
*/
|
||||||
public static function send_delete_activity( $activitypub_post ) {
|
public static function send_delete_activity( $activitypub_post ) {
|
||||||
// get latest version of post
|
// get latest version of post
|
||||||
|
$user_id = $activitypub_post->get_post_author();
|
||||||
$deleted = \current_time( 'Y-m-d\TH:i:s\Z', true );
|
$deleted = \current_time( 'Y-m-d\TH:i:s\Z', true );
|
||||||
$activitypub_post->set_deleted( $deleted );
|
$activitypub_post->set_deleted( $deleted );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue