Skip to content

Commit

Permalink
Social: block anonymous users for read_url_with_open_graph
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Apr 24, 2023
1 parent 0a6dc86 commit ed94690
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/inc/ajax/social.ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@
break;
// Read the Url using OpenGraph and returns the hyperlinks content
case 'read_url_with_open_graph':
api_block_anonymous_users(false);

$url = $_POST['social_wall_new_msg_main'] ?? '';
$url = trim($url);
$html = '';
Expand Down

0 comments on commit ed94690

Please sign in to comment.