Skip to content

Commit

Permalink
fix: file conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Feb 13, 2025
2 parents b717b04 + ce437c9 commit f673c3b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions includes/admin/services/class-rop-mastodon-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,16 @@ public function share( $post_details, $args = array() ) {
}
}

// Save log.
$this->save_logs_on_rop(
array(
'network' => $post_details['service'],
'handle' => $args['user'],
'content' => $post_details['content'],
'link' => $post_details['post_url'],
)
);

$this->logger->alert_success(
sprintf(
'Successfully shared %s to %s on %s ',
Expand Down
9 changes: 9 additions & 0 deletions includes/admin/services/class-rop-telegram-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,15 @@ public function share( $post_details, $args = array() ) {
}

if ( $response && $response->getMessageId() ) {
// Save log.
$this->save_logs_on_rop(
array(
'network' => $post_details['service'],
'handle' => $args['user'],
'content' => $post_details['content'],
'link' => $post_details['post_url'],
)
);
$this->logger->alert_success(
sprintf(
'Successfully shared %s to %s on Telegram ',
Expand Down

0 comments on commit f673c3b

Please sign in to comment.